news_feed 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,13 +3,10 @@ module NewsFeed
3
3
  base.extend ActsAsNewsFeedable
4
4
  end
5
5
 
6
+
6
7
  module ActsAsNewsFeedable
7
- def acts_as_news_feedable(options = {})
8
- cattr_accessor :object_name
9
- self.object_name = options[:object_name]
10
-
8
+ def acts_as_news_feedable
11
9
  has_many :news_feed_events, foreign_key: 'recipient_id', dependent: :delete_all
12
-
13
10
  include NewsFeedInstanceMethods
14
11
  require Rails.root.join('lib/news_feed/news_feed_events')
15
12
  include NewsFeedEvents
@@ -23,12 +20,12 @@ module NewsFeed
23
20
  end
24
21
  recipients.each do |recipient|
25
22
 
26
- if actor.object_name.blank?
27
- raise "Actor name must be specified in the model"
23
+ unless self.respond_to?('news_feed_object_name')
24
+ raise "news_feed_object_name must be defined in model"
28
25
  end
29
26
 
30
- if self.object_name.present?
31
- object_title = self.object_name
27
+ if self.news_feed_object_name.present?
28
+ object_title = self.news_feed_object_name
32
29
  end
33
30
 
34
31
  text = generate_text(event_name, actor_name(actor, recipient), object_class,
@@ -51,7 +48,7 @@ module NewsFeed
51
48
  if actor == recipient
52
49
  "You have"
53
50
  else
54
- actor.object_name.to_s + " has"
51
+ actor.news_feed_object_name.to_s + " has"
55
52
  end
56
53
  end
57
54
 
@@ -1,3 +1,3 @@
1
1
  module NewsFeed
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,3 +1,11 @@
1
1
  class Message < ActiveRecord::Base
2
- acts_as_news_feedable object_name: "Message Title"
2
+ acts_as_news_feedable
3
+
4
+ def news_feed_object_name
5
+ self.title
6
+ end
7
+
8
+ def title
9
+ "Message Title"
10
+ end
3
11
  end
@@ -1,3 +1,10 @@
1
1
  class User < ActiveRecord::Base
2
- acts_as_news_feedable object_name: "Bob Smith"
2
+ acts_as_news_feedable
3
+
4
+ def news_feed_object_name
5
+ self.name
6
+ end
7
+
8
+ attr_accessible :name
9
+
3
10
  end
Binary file
@@ -0,0 +1,6 @@
1
+ class AddNameToUsers < ActiveRecord::Migration
2
+ def change
3
+ add_column :users, :name, :string
4
+ end
5
+
6
+ end
@@ -11,7 +11,7 @@
11
11
  #
12
12
  # It's strongly recommended to check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(:version => 20120807021300) do
14
+ ActiveRecord::Schema.define(:version => 20120811044708) do
15
15
 
16
16
  create_table "messages", :force => true do |t|
17
17
  t.datetime "created_at", :null => false
@@ -43,6 +43,7 @@ ActiveRecord::Schema.define(:version => 20120807021300) do
43
43
  create_table "users", :force => true do |t|
44
44
  t.datetime "created_at", :null => false
45
45
  t.datetime "updated_at", :null => false
46
+ t.string "name"
46
47
  end
47
48
 
48
49
  end
@@ -175,3 +175,143 @@ Migrating to InsertNewsFeedEvents (20120807021300)
175
175
   (0.0ms) PRAGMA index_list("news_feed")
176
176
   (0.0ms) PRAGMA index_list("news_feed_events")
177
177
   (0.0ms) PRAGMA index_list("users")
178
+ Connecting to database specified by database.yml
179
+ Connecting to database specified by database.yml
180
+ Connecting to database specified by database.yml
181
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
182
+ Migrating to CreateUsers (20120806195421)
183
+ Migrating to CreateNewsFeed (20120806213224)
184
+ Migrating to CreateMessages (20120806220426)
185
+ Migrating to InsertNewsFeedEvents (20120807021300)
186
+ Migrating to AddNameToUsers (20120811044708)
187
+  (0.0ms) select sqlite_version(*)
188
+  (0.1ms) begin transaction
189
+  (0.2ms) ALTER TABLE "userss" ADD "name" varchar(255)
190
+ SQLite3::SQLException: no such table: userss: ALTER TABLE "userss" ADD "name" varchar(255)
191
+  (0.1ms) rollback transaction
192
+ Connecting to database specified by database.yml
193
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
194
+ Migrating to CreateUsers (20120806195421)
195
+ Migrating to CreateNewsFeed (20120806213224)
196
+ Migrating to CreateMessages (20120806220426)
197
+ Migrating to InsertNewsFeedEvents (20120807021300)
198
+ Migrating to AddNameToUsers (20120811044708)
199
+  (0.0ms) select sqlite_version(*)
200
+  (0.1ms) begin transaction
201
+  (0.4ms) ALTER TABLE "users" ADD "name" varchar(255)
202
+ SQLite3::ReadOnlyException: attempt to write a readonly database: ALTER TABLE "users" ADD "name" varchar(255)
203
+  (0.0ms) rollback transaction
204
+ Connecting to database specified by database.yml
205
+  (0.2ms) select sqlite_version(*)
206
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
207
+  (0.1ms) PRAGMA index_list("schema_migrations")
208
+  (1.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
209
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
210
+ Migrating to CreateUsers (20120806195421)
211
+  (0.0ms) begin transaction
212
+  (0.4ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
213
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806195421')
214
+  (1.5ms) commit transaction
215
+ Migrating to CreateNewsFeed (20120806213224)
216
+  (0.1ms) begin transaction
217
+  (0.3ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
218
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806213224')
219
+  (1.1ms) commit transaction
220
+ Migrating to CreateMessages (20120806220426)
221
+  (0.0ms) begin transaction
222
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
223
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120806220426')
224
+  (1.1ms) commit transaction
225
+ Migrating to InsertNewsFeedEvents (20120807021300)
226
+  (0.0ms) begin transaction
227
+  (0.3ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
228
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120807021300')
229
+  (1.9ms) commit transaction
230
+ Migrating to AddNameToUsers (20120811044708)
231
+  (0.1ms) begin transaction
232
+  (0.3ms) ALTER TABLE "users" ADD "name" varchar(255)
233
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20120811044708')
234
+  (1.3ms) commit transaction
235
+  (0.3ms) select sqlite_version(*)
236
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
237
+  (0.0ms) PRAGMA index_list("messages")
238
+  (0.0ms) PRAGMA index_list("news_feed")
239
+  (0.0ms) PRAGMA index_list("news_feed_events")
240
+  (0.0ms) PRAGMA index_list("users")
241
+ Connecting to database specified by database.yml
242
+ Connecting to database specified by database.yml
243
+ Connecting to database specified by database.yml
244
+ Connecting to database specified by database.yml
245
+ Connecting to database specified by database.yml
246
+ Connecting to database specified by database.yml
247
+ Connecting to database specified by database.yml
248
+ Connecting to database specified by database.yml
249
+ Connecting to database specified by database.yml
250
+ Connecting to database specified by database.yml
251
+ Connecting to database specified by database.yml
252
+ Connecting to database specified by database.yml
253
+ Connecting to database specified by database.yml
254
+ Connecting to database specified by database.yml
255
+ Connecting to database specified by database.yml
256
+ Connecting to database specified by database.yml
257
+ Connecting to database specified by database.yml
258
+ Connecting to database specified by database.yml
259
+ Connecting to database specified by database.yml
260
+ Connecting to database specified by database.yml
261
+ Connecting to database specified by database.yml
262
+ Connecting to database specified by database.yml
263
+ Connecting to database specified by database.yml
264
+ Connecting to database specified by database.yml
265
+ Connecting to database specified by database.yml
266
+ Connecting to database specified by database.yml
267
+ Connecting to database specified by database.yml
268
+ Connecting to database specified by database.yml
269
+ Connecting to database specified by database.yml
270
+ Connecting to database specified by database.yml
271
+ Connecting to database specified by database.yml
272
+ Connecting to database specified by database.yml
273
+ Connecting to database specified by database.yml
274
+ Connecting to database specified by database.yml
275
+ Connecting to database specified by database.yml
276
+ Connecting to database specified by database.yml
277
+ Connecting to database specified by database.yml
278
+ Connecting to database specified by database.yml
279
+ Connecting to database specified by database.yml
280
+ Connecting to database specified by database.yml
281
+ Connecting to database specified by database.yml
282
+ Connecting to database specified by database.yml
283
+ Connecting to database specified by database.yml
284
+ Connecting to database specified by database.yml
285
+ Connecting to database specified by database.yml
286
+ Connecting to database specified by database.yml
287
+ Connecting to database specified by database.yml
288
+ Connecting to database specified by database.yml
289
+ Connecting to database specified by database.yml
290
+ Connecting to database specified by database.yml
291
+ Connecting to database specified by database.yml
292
+ Connecting to database specified by database.yml
293
+ Connecting to database specified by database.yml
294
+ Connecting to database specified by database.yml
295
+ Connecting to database specified by database.yml
296
+ Connecting to database specified by database.yml
297
+ Connecting to database specified by database.yml
298
+ Connecting to database specified by database.yml
299
+ Connecting to database specified by database.yml
300
+ Connecting to database specified by database.yml
301
+ Connecting to database specified by database.yml
302
+ Connecting to database specified by database.yml
303
+ Connecting to database specified by database.yml
304
+ Connecting to database specified by database.yml
305
+ Connecting to database specified by database.yml
306
+ Connecting to database specified by database.yml
307
+ Connecting to database specified by database.yml
308
+ Connecting to database specified by database.yml
309
+ Connecting to database specified by database.yml
310
+ Connecting to database specified by database.yml
311
+ Connecting to database specified by database.yml
312
+ Connecting to database specified by database.yml
313
+ Connecting to database specified by database.yml
314
+ Connecting to database specified by database.yml
315
+ Connecting to database specified by database.yml
316
+ Connecting to database specified by database.yml
317
+ Connecting to database specified by database.yml
@@ -3415,3 +3415,604 @@ Connecting to database specified by database.yml
3415
3415
  SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00], ["event_object_id", 7], ["event_object_type", "Message"], ["event_type", :Custom], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", "User"], ["text", "This is my custom message"], ["updated_at", Fri, 10 Aug 2012 07:42:51 UTC +00:00]]
3416
3416
   (0.0ms) commit transaction
3417
3417
  NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3418
+ Connecting to database specified by database.yml
3419
+ Connecting to database specified by database.yml
3420
+ Connecting to database specified by database.yml
3421
+ Connecting to database specified by database.yml
3422
+  (2.1ms) select sqlite_version(*)
3423
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3424
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3425
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3426
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3427
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3428
+  (0.0ms) PRAGMA index_list("schema_migrations")
3429
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3430
+  (0.1ms) SELECT version FROM "schema_migrations"
3431
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3432
+  (0.1ms) begin transaction
3433
+  (0.1ms) rollback transaction
3434
+  (0.0ms) begin transaction
3435
+ SQL (3.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3436
+  (0.0ms) commit transaction
3437
+  (0.0ms) begin transaction
3438
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3439
+  (0.0ms) commit transaction
3440
+  (0.0ms) begin transaction
3441
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3442
+  (0.0ms) commit transaction
3443
+  (0.0ms) begin transaction
3444
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3445
+  (0.1ms) commit transaction
3446
+  (0.0ms) begin transaction
3447
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3448
+  (0.0ms) commit transaction
3449
+  (0.0ms) begin transaction
3450
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3451
+  (0.0ms) commit transaction
3452
+  (0.0ms) begin transaction
3453
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3454
+  (0.0ms) commit transaction
3455
+  (0.1ms) begin transaction
3456
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3457
+  (0.0ms) commit transaction
3458
+  (0.0ms) begin transaction
3459
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3460
+  (0.0ms) commit transaction
3461
+  (0.1ms) begin transaction
3462
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3463
+  (0.0ms) commit transaction
3464
+  (0.0ms) begin transaction
3465
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3466
+  (0.0ms) commit transaction
3467
+  (0.1ms) begin transaction
3468
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3469
+  (0.0ms) commit transaction
3470
+  (0.0ms) begin transaction
3471
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3472
+  (0.0ms) commit transaction
3473
+  (0.0ms) begin transaction
3474
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3475
+  (0.0ms) commit transaction
3476
+  (0.0ms) begin transaction
3477
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3478
+  (0.0ms) commit transaction
3479
+  (0.0ms) begin transaction
3480
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3481
+  (0.0ms) commit transaction
3482
+  (0.0ms) begin transaction
3483
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3484
+  (0.0ms) commit transaction
3485
+  (0.0ms) begin transaction
3486
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3487
+  (0.0ms) commit transaction
3488
+  (0.0ms) begin transaction
3489
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3490
+  (0.1ms) commit transaction
3491
+  (0.1ms) begin transaction
3492
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3493
+  (0.0ms) commit transaction
3494
+  (0.0ms) begin transaction
3495
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:35:38 UTC +00:00]]
3496
+  (0.0ms) commit transaction
3497
+ Connecting to database specified by database.yml
3498
+  (2.0ms) select sqlite_version(*)
3499
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3500
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3501
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3502
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3503
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3504
+  (0.0ms) PRAGMA index_list("schema_migrations")
3505
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3506
+  (0.0ms) SELECT version FROM "schema_migrations"
3507
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3508
+  (0.1ms) begin transaction
3509
+  (0.1ms) rollback transaction
3510
+ Connecting to database specified by database.yml
3511
+  (1.9ms) select sqlite_version(*)
3512
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3513
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3514
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3515
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3516
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3517
+  (0.0ms) PRAGMA index_list("schema_migrations")
3518
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3519
+  (0.0ms) SELECT version FROM "schema_migrations"
3520
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3521
+  (0.1ms) begin transaction
3522
+  (0.0ms) rollback transaction
3523
+ Connecting to database specified by database.yml
3524
+  (1.5ms) select sqlite_version(*)
3525
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3526
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3527
+  (0.3ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3528
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3529
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3530
+  (0.0ms) PRAGMA index_list("schema_migrations")
3531
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3532
+  (0.1ms) SELECT version FROM "schema_migrations"
3533
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3534
+  (0.2ms) begin transaction
3535
+  (0.0ms) rollback transaction
3536
+  (0.1ms) begin transaction
3537
+ SQL (3.7ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3538
+  (0.0ms) commit transaction
3539
+  (0.0ms) begin transaction
3540
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3541
+  (0.0ms) commit transaction
3542
+  (0.0ms) begin transaction
3543
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3544
+  (0.0ms) commit transaction
3545
+  (0.0ms) begin transaction
3546
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3547
+  (0.0ms) commit transaction
3548
+  (0.0ms) begin transaction
3549
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3550
+  (0.0ms) commit transaction
3551
+  (0.0ms) begin transaction
3552
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3553
+  (0.0ms) commit transaction
3554
+  (0.0ms) begin transaction
3555
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3556
+  (0.0ms) commit transaction
3557
+  (0.0ms) begin transaction
3558
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3559
+  (0.0ms) commit transaction
3560
+  (0.0ms) begin transaction
3561
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3562
+  (0.0ms) commit transaction
3563
+  (0.1ms) begin transaction
3564
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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: Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3565
+  (0.0ms) commit transaction
3566
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3567
+  (0.0ms) begin transaction
3568
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3569
+  (0.0ms) commit transaction
3570
+  (0.0ms) begin transaction
3571
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3572
+  (0.0ms) commit transaction
3573
+  (0.0ms) begin transaction
3574
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3575
+  (0.0ms) commit transaction
3576
+  (0.0ms) begin transaction
3577
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3578
+  (0.0ms) commit transaction
3579
+  (0.0ms) begin transaction
3580
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3581
+  (0.0ms) commit transaction
3582
+  (0.0ms) begin transaction
3583
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3584
+  (0.0ms) commit transaction
3585
+  (0.0ms) begin transaction
3586
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3587
+  (0.0ms) commit transaction
3588
+  (0.0ms) begin transaction
3589
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3590
+  (0.0ms) commit transaction
3591
+  (0.0ms) begin transaction
3592
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3593
+  (0.0ms) commit transaction
3594
+  (0.0ms) begin transaction
3595
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3596
+  (0.0ms) commit transaction
3597
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3598
+  (0.0ms) begin transaction
3599
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3600
+  (0.0ms) commit transaction
3601
+  (0.0ms) begin transaction
3602
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3603
+  (0.0ms) commit transaction
3604
+  (0.0ms) begin transaction
3605
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3606
+  (0.0ms) commit transaction
3607
+  (0.0ms) begin transaction
3608
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3609
+  (0.0ms) commit transaction
3610
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3611
+  (0.0ms) begin transaction
3612
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3613
+  (0.0ms) commit transaction
3614
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3615
+  (0.1ms) begin transaction
3616
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3617
+  (0.1ms) commit transaction
3618
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3619
+  (0.0ms) begin transaction
3620
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3621
+  (0.0ms) commit transaction
3622
+  (0.0ms) begin transaction
3623
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3624
+  (0.1ms) commit transaction
3625
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3626
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3627
+  (0.1ms) begin transaction
3628
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:39:18 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", Mon, 13 Aug 2012 03:39:18 UTC +00:00]]
3629
+  (0.0ms) commit transaction
3630
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3631
+ Connecting to database specified by database.yml
3632
+  (1.8ms) select sqlite_version(*)
3633
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3634
+  (0.2ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3635
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3636
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3637
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3638
+  (0.0ms) PRAGMA index_list("schema_migrations")
3639
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3640
+  (0.1ms) SELECT version FROM "schema_migrations"
3641
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3642
+  (0.1ms) begin transaction
3643
+  (0.1ms) rollback transaction
3644
+  (0.1ms) begin transaction
3645
+ SQL (4.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3646
+  (0.1ms) commit transaction
3647
+  (0.0ms) begin transaction
3648
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3649
+  (0.0ms) commit transaction
3650
+  (0.1ms) begin transaction
3651
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3652
+  (0.0ms) commit transaction
3653
+  (0.1ms) begin transaction
3654
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3655
+  (0.0ms) commit transaction
3656
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3657
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3658
+  (0.0ms) begin transaction
3659
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3660
+  (0.0ms) commit transaction
3661
+  (0.0ms) begin transaction
3662
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3663
+  (0.0ms) commit transaction
3664
+  (0.0ms) begin transaction
3665
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3666
+  (0.0ms) commit transaction
3667
+  (0.0ms) begin transaction
3668
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3669
+  (0.0ms) commit transaction
3670
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3671
+  (0.0ms) begin transaction
3672
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3673
+  (0.0ms) commit transaction
3674
+  (0.0ms) begin transaction
3675
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3676
+  (0.0ms) commit transaction
3677
+  (0.0ms) begin transaction
3678
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3679
+  (0.0ms) commit transaction
3680
+  (0.0ms) begin transaction
3681
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "You have created a User: Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3682
+  (0.0ms) commit transaction
3683
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3684
+  (0.0ms) begin transaction
3685
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3686
+  (0.0ms) commit transaction
3687
+  (0.0ms) begin transaction
3688
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3689
+  (0.0ms) commit transaction
3690
+  (0.0ms) begin transaction
3691
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3692
+  (0.0ms) commit transaction
3693
+  (0.0ms) begin transaction
3694
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3695
+  (0.0ms) commit transaction
3696
+  (0.0ms) begin transaction
3697
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3698
+  (0.0ms) commit transaction
3699
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3700
+  (0.0ms) begin transaction
3701
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3702
+  (0.0ms) commit transaction
3703
+  (0.0ms) begin transaction
3704
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3705
+  (0.0ms) commit transaction
3706
+  (0.0ms) begin transaction
3707
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3708
+  (0.1ms) commit transaction
3709
+  (0.0ms) begin transaction
3710
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3711
+  (0.0ms) commit transaction
3712
+  (0.0ms) begin transaction
3713
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3714
+  (0.0ms) commit transaction
3715
+  (0.0ms) begin transaction
3716
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3717
+  (0.0ms) commit transaction
3718
+  (0.1ms) begin transaction
3719
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "You have updated a User: Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3720
+  (0.1ms) commit transaction
3721
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3722
+  (0.0ms) begin transaction
3723
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3724
+  (0.0ms) commit transaction
3725
+  (0.0ms) begin transaction
3726
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3727
+  (0.1ms) commit transaction
3728
+  (0.0ms) begin transaction
3729
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3730
+  (0.1ms) commit transaction
3731
+  (0.1ms) begin transaction
3732
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", "User"], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3733
+  (0.1ms) commit transaction
3734
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3735
+  (0.0ms) begin transaction
3736
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 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", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3737
+  (0.0ms) commit transaction
3738
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3739
+  (0.0ms) begin transaction
3740
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 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", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3741
+  (0.1ms) commit transaction
3742
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3743
+  (0.0ms) begin transaction
3744
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 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", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3745
+  (0.0ms) commit transaction
3746
+  (0.0ms) begin transaction
3747
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 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", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3748
+  (0.1ms) commit transaction
3749
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3750
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3751
+  (0.0ms) begin transaction
3752
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:33 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", Mon, 13 Aug 2012 03:40:33 UTC +00:00]]
3753
+  (0.1ms) commit transaction
3754
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3755
+ Connecting to database specified by database.yml
3756
+  (1.4ms) select sqlite_version(*)
3757
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3758
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3759
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3760
+  (0.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3761
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3762
+  (0.0ms) PRAGMA index_list("schema_migrations")
3763
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3764
+  (0.1ms) SELECT version FROM "schema_migrations"
3765
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3766
+  (0.1ms) begin transaction
3767
+  (0.1ms) rollback transaction
3768
+  (0.0ms) begin transaction
3769
+ SQL (3.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3770
+  (0.0ms) commit transaction
3771
+  (0.0ms) begin transaction
3772
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3773
+  (0.0ms) commit transaction
3774
+  (0.1ms) begin transaction
3775
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3776
+  (0.0ms) commit transaction
3777
+  (0.1ms) begin transaction
3778
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3779
+  (0.0ms) commit transaction
3780
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3781
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3782
+  (0.1ms) begin transaction
3783
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3784
+  (0.0ms) commit transaction
3785
+  (0.0ms) begin transaction
3786
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3787
+  (0.1ms) commit transaction
3788
+  (0.0ms) begin transaction
3789
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3790
+  (0.0ms) commit transaction
3791
+  (0.0ms) begin transaction
3792
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3793
+  (0.0ms) commit transaction
3794
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3795
+  (0.0ms) begin transaction
3796
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3797
+  (0.0ms) commit transaction
3798
+  (0.0ms) begin transaction
3799
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3800
+  (0.0ms) commit transaction
3801
+  (0.0ms) begin transaction
3802
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3803
+  (0.0ms) commit transaction
3804
+  (0.0ms) begin transaction
3805
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 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: Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3806
+  (0.1ms) commit transaction
3807
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3808
+  (0.0ms) begin transaction
3809
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3810
+  (0.0ms) commit transaction
3811
+  (0.0ms) begin transaction
3812
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3813
+  (0.0ms) commit transaction
3814
+  (0.0ms) begin transaction
3815
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3816
+  (0.1ms) commit transaction
3817
+  (0.0ms) begin transaction
3818
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3819
+  (0.0ms) commit transaction
3820
+  (0.0ms) begin transaction
3821
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3822
+  (0.0ms) commit transaction
3823
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3824
+  (0.0ms) begin transaction
3825
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3826
+  (0.0ms) commit transaction
3827
+  (0.0ms) begin transaction
3828
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3829
+  (0.0ms) commit transaction
3830
+  (0.0ms) begin transaction
3831
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3832
+  (0.0ms) commit transaction
3833
+  (0.0ms) begin transaction
3834
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3835
+  (0.1ms) commit transaction
3836
+  (0.0ms) begin transaction
3837
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3838
+  (0.0ms) commit transaction
3839
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3840
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3841
+  (0.0ms) begin transaction
3842
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3843
+  (0.0ms) commit transaction
3844
+  (0.0ms) begin transaction
3845
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3846
+  (0.1ms) commit transaction
3847
+  (0.0ms) begin transaction
3848
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3849
+  (0.0ms) commit transaction
3850
+  (0.0ms) begin transaction
3851
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3852
+  (0.0ms) commit transaction
3853
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3854
+  (0.0ms) begin transaction
3855
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3856
+  (0.1ms) commit transaction
3857
+  (0.0ms) begin transaction
3858
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3859
+  (0.0ms) commit transaction
3860
+  (0.0ms) begin transaction
3861
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3862
+  (0.0ms) commit transaction
3863
+  (0.0ms) begin transaction
3864
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3865
+  (0.1ms) commit transaction
3866
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3867
+  (0.1ms) begin transaction
3868
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3869
+  (0.0ms) commit transaction
3870
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3871
+  (0.0ms) begin transaction
3872
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3873
+  (0.0ms) commit transaction
3874
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3875
+  (0.1ms) begin transaction
3876
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3877
+  (0.0ms) commit transaction
3878
+  (0.1ms) begin transaction
3879
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3880
+  (0.1ms) commit transaction
3881
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3882
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3883
+  (0.0ms) begin transaction
3884
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:40: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", Mon, 13 Aug 2012 03:40:51 UTC +00:00]]
3885
+  (0.1ms) commit transaction
3886
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3887
+ Connecting to database specified by database.yml
3888
+  (1.5ms) select sqlite_version(*)
3889
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3890
+  (0.1ms) CREATE TABLE "news_feed" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "timestamp" datetime) 
3891
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" varchar(255), "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
3892
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
3893
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
3894
+  (0.0ms) PRAGMA index_list("schema_migrations")
3895
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
3896
+  (0.1ms) SELECT version FROM "schema_migrations"
3897
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
3898
+  (0.1ms) begin transaction
3899
+  (0.0ms) rollback transaction
3900
+  (0.1ms) begin transaction
3901
+ SQL (3.4ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3902
+  (0.0ms) commit transaction
3903
+  (0.1ms) begin transaction
3904
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3905
+  (0.0ms) commit transaction
3906
+  (0.0ms) begin transaction
3907
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3908
+  (0.0ms) commit transaction
3909
+  (0.1ms) begin transaction
3910
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3911
+  (0.0ms) commit transaction
3912
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3913
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
3914
+  (0.1ms) begin transaction
3915
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3916
+  (0.0ms) commit transaction
3917
+  (0.0ms) begin transaction
3918
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3919
+  (0.0ms) commit transaction
3920
+  (0.0ms) begin transaction
3921
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3922
+  (0.0ms) commit transaction
3923
+  (0.0ms) begin transaction
3924
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3925
+  (0.0ms) commit transaction
3926
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3927
+  (0.0ms) begin transaction
3928
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3929
+  (0.0ms) commit transaction
3930
+  (0.0ms) begin transaction
3931
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3932
+  (0.0ms) commit transaction
3933
+  (0.0ms) begin transaction
3934
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3935
+  (0.1ms) commit transaction
3936
+  (0.0ms) begin transaction
3937
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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: Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3938
+  (0.0ms) commit transaction
3939
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3940
+  (0.0ms) begin transaction
3941
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3942
+  (0.0ms) commit transaction
3943
+  (0.0ms) begin transaction
3944
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3945
+  (0.0ms) commit transaction
3946
+  (0.0ms) begin transaction
3947
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3948
+  (0.0ms) commit transaction
3949
+  (0.0ms) begin transaction
3950
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3951
+  (0.0ms) commit transaction
3952
+  (0.0ms) begin transaction
3953
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3954
+  (0.0ms) commit transaction
3955
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7
3956
+  (0.0ms) begin transaction
3957
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3958
+  (0.0ms) commit transaction
3959
+  (0.0ms) begin transaction
3960
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3961
+  (0.0ms) commit transaction
3962
+  (0.0ms) begin transaction
3963
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3964
+  (0.1ms) commit transaction
3965
+  (0.0ms) begin transaction
3966
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3967
+  (0.1ms) commit transaction
3968
+  (0.0ms) begin transaction
3969
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3970
+  (0.0ms) commit transaction
3971
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 9 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3972
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3973
+  (0.1ms) begin transaction
3974
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3975
+  (0.0ms) commit transaction
3976
+  (0.0ms) begin transaction
3977
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3978
+  (0.0ms) commit transaction
3979
+  (0.0ms) begin transaction
3980
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3981
+  (0.0ms) commit transaction
3982
+  (0.0ms) begin transaction
3983
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3984
+  (0.0ms) commit transaction
3985
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 12 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3986
+  (0.1ms) begin transaction
3987
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Billy Jones"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3988
+  (0.0ms) commit transaction
3989
+  (0.0ms) begin transaction
3990
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "name", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["name", "Bob Smith"], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3991
+  (0.0ms) commit transaction
3992
+  (0.0ms) begin transaction
3993
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00], ["updated_at", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3994
+  (0.0ms) commit transaction
3995
+  (0.1ms) begin transaction
3996
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
3997
+  (0.0ms) commit transaction
3998
+ NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
3999
+  (0.1ms) begin transaction
4000
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
4001
+  (0.1ms) commit transaction
4002
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
4003
+  (0.1ms) begin transaction
4004
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
4005
+  (0.0ms) commit transaction
4006
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
4007
+  (0.0ms) begin transaction
4008
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
4009
+  (0.0ms) commit transaction
4010
+  (0.0ms) begin transaction
4011
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
4012
+  (0.1ms) commit transaction
4013
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
4014
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 14 ORDER BY "news_feed_events"."id" DESC LIMIT 1
4015
+  (0.1ms) begin transaction
4016
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 13 Aug 2012 03:43:14 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", Mon, 13 Aug 2012 03:43:14 UTC +00:00]]
4017
+  (0.0ms) commit transaction
4018
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 13 ORDER BY "news_feed_events"."id" DESC LIMIT 1
@@ -2,13 +2,13 @@ require 'test_helper'
2
2
 
3
3
  class NewsFeedTest < Test::Unit::TestCase
4
4
  def test_to_get_user_name
5
- user = User.new
6
- assert_equal "Bob Smith", user.object_name
5
+ user = User.new(name: 'Bob Smith')
6
+ assert_equal "Bob Smith", user.news_feed_object_name
7
7
  end
8
8
 
9
9
  def test_for_creating_a_new_object
10
- user_1 = User.create
11
- current_user = User.create
10
+ user_1 = User.create(name: 'Billy Jones')
11
+ current_user = User.create(name: 'Bob Smith')
12
12
  message = Message.create
13
13
  message.insertNewsFeed(:Create, user_1, current_user)
14
14
  news_feed_event = user_1.news_feed_events.last
@@ -25,8 +25,8 @@ class NewsFeedTest < Test::Unit::TestCase
25
25
  end
26
26
 
27
27
  def test_for_updating_and_sending_self_an_object
28
- user_1 = User.create
29
- current_user = User.create
28
+ user_recipient = User.create(name: 'Billy Jones')
29
+ current_user = User.create(name: 'Bob Smith')
30
30
  message = Message.create
31
31
  current_user.insertNewsFeed(:Update, current_user, current_user)
32
32
  news_feed_event = current_user.news_feed_events.last
@@ -41,8 +41,8 @@ class NewsFeedTest < Test::Unit::TestCase
41
41
  end
42
42
 
43
43
  def test_for_delete_an_object_sent_to_multiple_recipients
44
- user_1 = User.create
45
- current_user = User.create
44
+ user_1 = User.create(name: 'Billy Jones')
45
+ current_user = User.create(name: 'Bob Smith')
46
46
  message = Message.create
47
47
  message.insertNewsFeed(:Delete, user_1, current_user)
48
48
  news_feed_event = user_1.news_feed_events.last
@@ -57,8 +57,8 @@ class NewsFeedTest < Test::Unit::TestCase
57
57
  end
58
58
 
59
59
  def test_for_multiple_news_feeds
60
- user_1 = User.create
61
- current_user = User.create
60
+ user_1 = User.create(name: 'Billy Jones')
61
+ current_user = User.create(name: 'Bob Smith')
62
62
  message = Message.create
63
63
  message.insertNewsFeed(:Delete, user_1, current_user)
64
64
  message.insertNewsFeed(:Create, user_1, current_user)
@@ -66,8 +66,8 @@ class NewsFeedTest < Test::Unit::TestCase
66
66
  end
67
67
 
68
68
  def test_for_sending_an_object_to_multiple_recipients
69
- user_1 = User.create
70
- current_user = User.create
69
+ user_1 = User.create(name: 'Billy Jones')
70
+ current_user = User.create(name: 'Bob Smith')
71
71
  message = Message.create
72
72
  message.insertNewsFeed(:Send, [user_1, current_user], current_user)
73
73
  news_feed_event_1 = user_1.news_feed_events.last
@@ -91,8 +91,8 @@ class NewsFeedTest < Test::Unit::TestCase
91
91
  end
92
92
 
93
93
  def test_for_sending_an_object_to_multiple_recipients
94
- user_1 = User.create
95
- current_user = User.create
94
+ user_1 = User.create(name: 'Billy Jones')
95
+ current_user = User.create(name: 'Bob Smith')
96
96
  message = Message.create
97
97
  message.insertNewsFeed(:Custom, [user_1, current_user], current_user, "This is my custom message!")
98
98
  news_feed_event_1 = user_1.news_feed_events.last
@@ -115,12 +115,12 @@ class NewsFeedTest < Test::Unit::TestCase
115
115
  end
116
116
 
117
117
  def test_for_different_classes
118
- user_recipient = User.create
119
- current_user = User.create
118
+ user_recipient = User.create(name: 'Billy Jones')
119
+ current_user = User.create(name: 'Bob Smith')
120
120
  message = Message.create
121
121
  user_recipient.insertNewsFeed(:Create, user_recipient, user_recipient)
122
122
  news_feed_event_1 = user_recipient.news_feed_events.last
123
- assert_equal news_feed_event_1.text, 'You have created a User: Bob Smith'
123
+ assert_equal news_feed_event_1.text, 'You have created a User: Billy Jones'
124
124
  assert_equal news_feed_event_1.event_type_object, 'CreateUser'
125
125
  assert_equal news_feed_event_1.event_object_type, 'User'
126
126
  assert_equal news_feed_event_1.event_type, 'Create'
@@ -131,8 +131,8 @@ class NewsFeedTest < Test::Unit::TestCase
131
131
  end
132
132
 
133
133
  def test_for_various_messages
134
- user_recipient = User.create
135
- current_user = User.create
134
+ user_recipient = User.create(name: 'Billy Jones')
135
+ current_user = User.create(name: 'Bob Smith')
136
136
  message = Message.create
137
137
  message.insertNewsFeed(:Create, user_recipient, current_user)
138
138
  news_feed_event_1 = user_recipient.news_feed_events.last
data/test/test_helper.rb CHANGED
@@ -40,6 +40,7 @@ ActiveRecord::Schema.define(:version => 1) do
40
40
  end
41
41
 
42
42
  create_table "users", :force => true do |t|
43
+ t.string "name"
43
44
  t.datetime "created_at", :null => false
44
45
  t.datetime "updated_at", :null => false
45
46
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: news_feed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-10 00:00:00.000000000 Z
12
+ date: 2012-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -91,6 +91,7 @@ files:
91
91
  - test/dummy/db/migrate/20120806220426_create_messages.rb
92
92
  - test/dummy/db/migrate/20120806195421_create_users.rb
93
93
  - test/dummy/db/migrate/20120806213224_create_news_feed.rb
94
+ - test/dummy/db/migrate/20120811044708_add_name_to_users.rb
94
95
  - test/dummy/config/initializers/inflections.rb
95
96
  - test/dummy/config/initializers/backtrace_silencers.rb
96
97
  - test/dummy/config/initializers/mime_types.rb
@@ -166,6 +167,7 @@ test_files:
166
167
  - test/dummy/db/migrate/20120806220426_create_messages.rb
167
168
  - test/dummy/db/migrate/20120806195421_create_users.rb
168
169
  - test/dummy/db/migrate/20120806213224_create_news_feed.rb
170
+ - test/dummy/db/migrate/20120811044708_add_name_to_users.rb
169
171
  - test/dummy/config/initializers/inflections.rb
170
172
  - test/dummy/config/initializers/backtrace_silencers.rb
171
173
  - test/dummy/config/initializers/mime_types.rb