news_feed 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2394 +1,1340 @@
1
1
  Connecting to database specified by database.yml
2
+  (18.2ms) begin transaction
3
+  (0.1ms) rollback transaction
2
4
  Connecting to database specified by database.yml
5
+  (0.6ms) begin transaction
6
+  (0.0ms) rollback transaction
3
7
  Connecting to database specified by database.yml
4
- Connecting to database specified by database.yml
5
-  (2.7ms) begin transaction
6
-  (0.1ms) rollback transaction
7
- Connecting to database specified by database.yml
8
-  (0.5ms) begin transaction
9
-  (0.0ms) rollback transaction
10
- Connecting to database specified by database.yml
11
-  (0.8ms) begin transaction
12
-  (0.1ms) rollback transaction
13
- Connecting to database specified by database.yml
14
- Connecting to database specified by database.yml
15
- Connecting to database specified by database.yml
16
- Connecting to database specified by database.yml
17
-  (0.6ms) begin transaction
18
-  (0.0ms) rollback transaction
19
- Connecting to database specified by database.yml
20
-  (0.7ms) begin transaction
21
-  (0.1ms) rollback transaction
22
- Connecting to database specified by database.yml
23
- Connecting to database specified by database.yml
24
- Connecting to database specified by database.yml
25
- Connecting to database specified by database.yml
26
- Connecting to database specified by database.yml
27
- Connecting to database specified by database.yml
28
- Connecting to database specified by database.yml
29
- Connecting to database specified by database.yml
30
- Connecting to database specified by database.yml
31
- Connecting to database specified by database.yml
32
- Connecting to database specified by database.yml
33
- Connecting to database specified by database.yml
34
- Connecting to database specified by database.yml
35
- Connecting to database specified by database.yml
36
- Connecting to database specified by database.yml
37
- Connecting to database specified by database.yml
38
- Connecting to database specified by database.yml
39
- Connecting to database specified by database.yml
40
- Connecting to database specified by database.yml
41
- Connecting to database specified by database.yml
42
- Connecting to database specified by database.yml
43
- Connecting to database specified by database.yml
44
- Connecting to database specified by database.yml
45
- Connecting to database specified by database.yml
46
- Connecting to database specified by database.yml
47
- Connecting to database specified by database.yml
48
- Connecting to database specified by database.yml
49
- Connecting to database specified by database.yml
50
- Connecting to database specified by database.yml
51
- Connecting to database specified by database.yml
52
- Connecting to database specified by database.yml
53
- Connecting to database specified by database.yml
54
- Connecting to database specified by database.yml
55
- Connecting to database specified by database.yml
56
- Connecting to database specified by database.yml
57
- Connecting to database specified by database.yml
58
- Connecting to database specified by database.yml
59
- Connecting to database specified by database.yml
60
- Connecting to database specified by database.yml
61
- Connecting to database specified by database.yml
62
- Connecting to database specified by database.yml
63
- Connecting to database specified by database.yml
64
- Connecting to database specified by database.yml
65
- Connecting to database specified by database.yml
66
- Connecting to database specified by database.yml
67
- Connecting to database specified by database.yml
68
- Connecting to database specified by database.yml
69
- Connecting to database specified by database.yml
70
- Connecting to database specified by database.yml
71
- Connecting to database specified by database.yml
72
- Connecting to database specified by database.yml
73
- Connecting to database specified by database.yml
74
- Connecting to database specified by database.yml
75
- Connecting to database specified by database.yml
76
- Connecting to database specified by database.yml
77
- Connecting to database specified by database.yml
78
- Connecting to database specified by database.yml
79
- Connecting to database specified by database.yml
80
- Connecting to database specified by database.yml
81
- Connecting to database specified by database.yml
82
- Connecting to database specified by database.yml
83
- Connecting to database specified by database.yml
84
- Connecting to database specified by database.yml
85
- Connecting to database specified by database.yml
86
- Connecting to database specified by database.yml
87
- Connecting to database specified by database.yml
88
- Connecting to database specified by database.yml
89
- Connecting to database specified by database.yml
90
- Connecting to database specified by database.yml
91
- Connecting to database specified by database.yml
92
- Connecting to database specified by database.yml
93
- Connecting to database specified by database.yml
94
- Connecting to database specified by database.yml
95
- Connecting to database specified by database.yml
96
- Connecting to database specified by database.yml
97
- Connecting to database specified by database.yml
98
- Connecting to database specified by database.yml
99
- Connecting to database specified by database.yml
100
- Connecting to database specified by database.yml
101
- Connecting to database specified by database.yml
102
- Connecting to database specified by database.yml
103
- Connecting to database specified by database.yml
104
- Connecting to database specified by database.yml
105
- Connecting to database specified by database.yml
106
- Connecting to database specified by database.yml
107
- Connecting to database specified by database.yml
108
- Connecting to database specified by database.yml
109
- Connecting to database specified by database.yml
110
- Connecting to database specified by database.yml
111
- Connecting to database specified by database.yml
112
- Connecting to database specified by database.yml
113
- Connecting to database specified by database.yml
114
- Connecting to database specified by database.yml
115
- Connecting to database specified by database.yml
116
- Connecting to database specified by database.yml
117
- Connecting to database specified by database.yml
118
- Connecting to database specified by database.yml
119
- Connecting to database specified by database.yml
120
- Connecting to database specified by database.yml
121
- Connecting to database specified by database.yml
122
- Connecting to database specified by database.yml
123
- Connecting to database specified by database.yml
124
- Connecting to database specified by database.yml
125
- Connecting to database specified by database.yml
126
- Connecting to database specified by database.yml
127
- Connecting to database specified by database.yml
128
- Connecting to database specified by database.yml
129
- Connecting to database specified by database.yml
130
- Connecting to database specified by database.yml
131
- Connecting to database specified by database.yml
132
- Connecting to database specified by database.yml
133
- Connecting to database specified by database.yml
134
- Connecting to database specified by database.yml
135
- Connecting to database specified by database.yml
136
- Connecting to database specified by database.yml
137
- Connecting to database specified by database.yml
138
- Connecting to database specified by database.yml
139
- Connecting to database specified by database.yml
140
- Connecting to database specified by database.yml
141
- Connecting to database specified by database.yml
142
- Connecting to database specified by database.yml
143
- Connecting to database specified by database.yml
144
- Connecting to database specified by database.yml
145
- Connecting to database specified by database.yml
146
- Connecting to database specified by database.yml
147
- Connecting to database specified by database.yml
148
- Connecting to database specified by database.yml
149
- Connecting to database specified by database.yml
150
- Connecting to database specified by database.yml
151
- Connecting to database specified by database.yml
152
- Connecting to database specified by database.yml
153
- Connecting to database specified by database.yml
154
- Connecting to database specified by database.yml
155
- Connecting to database specified by database.yml
156
- Connecting to database specified by database.yml
157
- Connecting to database specified by database.yml
158
- Connecting to database specified by database.yml
159
- Connecting to database specified by database.yml
160
- Connecting to database specified by database.yml
161
- Connecting to database specified by database.yml
162
- Connecting to database specified by database.yml
163
- Connecting to database specified by database.yml
164
- Connecting to database specified by database.yml
165
- Connecting to database specified by database.yml
166
- Connecting to database specified by database.yml
167
- Connecting to database specified by database.yml
168
- Connecting to database specified by database.yml
169
- Connecting to database specified by database.yml
170
- Connecting to database specified by database.yml
171
- Connecting to database specified by database.yml
172
- Connecting to database specified by database.yml
173
- Connecting to database specified by database.yml
174
- Connecting to database specified by database.yml
175
- Connecting to database specified by database.yml
176
- Connecting to database specified by database.yml
177
- Connecting to database specified by database.yml
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
- Connecting to database specified by database.yml
182
- Connecting to database specified by database.yml
183
- Connecting to database specified by database.yml
184
- Connecting to database specified by database.yml
185
- Connecting to database specified by database.yml
186
- Connecting to database specified by database.yml
187
- Connecting to database specified by database.yml
188
- Connecting to database specified by database.yml
189
- Connecting to database specified by database.yml
190
- Connecting to database specified by database.yml
191
- Connecting to database specified by database.yml
192
- Connecting to database specified by database.yml
193
- Connecting to database specified by database.yml
194
- Connecting to database specified by database.yml
195
- Connecting to database specified by database.yml
196
- Connecting to database specified by database.yml
197
- Connecting to database specified by database.yml
198
- Connecting to database specified by database.yml
199
- Connecting to database specified by database.yml
200
- Connecting to database specified by database.yml
201
-  (0.1ms) begin transaction
202
-  (0.1ms) rollback transaction
203
- Connecting to database specified by database.yml
204
- Connecting to database specified by database.yml
205
- Connecting to database specified by database.yml
206
- Connecting to database specified by database.yml
207
-  (0.1ms) begin transaction
208
- SQL (139.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00]]
209
-  (3.4ms) commit transaction
210
-  (0.1ms) begin transaction
211
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00]]
212
-  (1.5ms) commit transaction
213
-  (0.1ms) begin transaction
214
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:27 UTC +00:00]]
215
-  (1.4ms) commit transaction
216
- Connecting to database specified by database.yml
217
-  (0.1ms) begin transaction
218
- SQL (3.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00]]
219
-  (7.2ms) commit transaction
220
-  (0.1ms) begin transaction
221
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00]]
222
-  (2.5ms) commit transaction
223
-  (0.1ms) begin transaction
224
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:41:48 UTC +00:00]]
225
-  (1.0ms) commit transaction
226
-  (0.0ms) begin transaction
227
- SQL (0.3ms) INSERT INTO "news_feed_events" ("event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "timestamp") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["event_type", :Create], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["timestamp", nil]]
228
-  (0.9ms) commit transaction
229
- Connecting to database specified by database.yml
230
-  (0.1ms) begin transaction
231
- SQL (6.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00]]
232
-  (2.2ms) commit transaction
233
-  (0.1ms) begin transaction
234
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00]]
235
-  (1.6ms) commit transaction
236
-  (0.1ms) begin transaction
237
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:42:23 UTC +00:00]]
238
-  (4.3ms) commit transaction
239
-  (0.1ms) begin transaction
240
- SQL (0.5ms) INSERT INTO "news_feed_events" ("event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "timestamp") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["timestamp", nil]]
241
-  (1.4ms) commit transaction
242
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3
243
- Connecting to database specified by database.yml
244
-  (0.1ms) begin transaction
245
- SQL (3.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00]]
246
-  (1.5ms) commit transaction
247
-  (0.0ms) begin transaction
248
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00]]
249
-  (1.2ms) commit transaction
250
-  (0.1ms) begin transaction
251
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:46:51 UTC +00:00]]
252
-  (0.9ms) commit transaction
253
-  (0.1ms) begin transaction
254
- SQL (0.3ms) INSERT INTO "news_feed_events" ("event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text") VALUES (?, ?, ?, ?, ?, ?, ?, ?) [["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"]]
255
-  (1.0ms) commit transaction
256
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1
257
- Connecting to database specified by database.yml
258
-  (0.1ms) begin transaction
259
- SQL (5.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00]]
260
-  (1.8ms) commit transaction
261
-  (0.1ms) begin transaction
262
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00]]
263
-  (0.9ms) commit transaction
264
-  (0.1ms) begin transaction
265
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00]]
266
-  (0.9ms) commit transaction
267
-  (0.1ms) begin transaction
268
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:47:58 UTC +00:00]]
269
-  (1.3ms) commit transaction
270
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1
271
- Connecting to database specified by database.yml
272
-  (0.1ms) begin transaction
273
- SQL (11.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00]]
274
-  (5.7ms) commit transaction
275
-  (0.0ms) begin transaction
276
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00]]
277
-  (1.2ms) commit transaction
278
-  (0.1ms) begin transaction
279
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00]]
280
-  (1.6ms) commit transaction
281
-  (0.1ms) begin transaction
282
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00], ["event_type", :Create], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:49:51 UTC +00:00]]
283
-  (3.9ms) commit transaction
284
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 2
285
- Connecting to database specified by database.yml
286
-  (0.1ms) begin transaction
287
- SQL (5.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00]]
288
-  (2.2ms) commit transaction
289
-  (0.1ms) begin transaction
290
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00]]
291
-  (1.2ms) commit transaction
292
-  (0.1ms) begin transaction
293
- SQL (0.7ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00]]
294
-  (1.7ms) commit transaction
295
-  (0.1ms) begin transaction
296
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:50:11 UTC +00:00]]
297
-  (8.1ms) commit transaction
298
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 LIMIT 1
299
- Connecting to database specified by database.yml
300
-  (0.1ms) begin transaction
301
- SQL (4.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00]]
302
-  (7.3ms) commit transaction
303
-  (0.0ms) begin transaction
304
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00]]
305
-  (1.6ms) commit transaction
306
-  (0.0ms) begin transaction
307
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00]]
308
-  (7.5ms) commit transaction
309
-  (0.1ms) begin transaction
310
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00], ["event_type", :Create], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:51:51 UTC +00:00]]
311
-  (1.1ms) commit transaction
312
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 4 ORDER BY "news_feed_events"."id" DESC LIMIT 1
313
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
314
- Connecting to database specified by database.yml
315
-  (0.1ms) begin transaction
316
- SQL (19.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00]]
317
-  (11.4ms) commit transaction
318
-  (0.1ms) begin transaction
319
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00]]
320
-  (0.9ms) commit transaction
321
-  (0.0ms) begin transaction
322
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00]]
323
-  (7.8ms) commit transaction
324
-  (0.1ms) begin transaction
325
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00], ["event_type", :Create], ["object_id", 5], ["object_type", "Message"], ["recipient_id", 9], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:52:46 UTC +00:00]]
326
-  (5.1ms) commit transaction
327
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
328
- Connecting to database specified by database.yml
329
-  (0.1ms) begin transaction
330
- SQL (4.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00]]
331
-  (2.6ms) commit transaction
332
-  (0.0ms) begin transaction
333
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00]]
334
-  (0.8ms) commit transaction
335
-  (0.1ms) begin transaction
336
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00]]
337
-  (5.0ms) commit transaction
338
-  (0.1ms) begin transaction
339
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00], ["event_type", :Create], ["object_id", 6], ["object_type", "Message"], ["recipient_id", 11], ["recipient_type", "User"], ["sender_id", 12], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:53:31 UTC +00:00]]
340
-  (1.2ms) commit transaction
341
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 11
342
- Connecting to database specified by database.yml
343
-  (0.1ms) begin transaction
344
- SQL (3.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00]]
345
-  (2.0ms) commit transaction
346
-  (0.1ms) begin transaction
347
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00]]
348
-  (1.0ms) commit transaction
349
-  (0.0ms) begin transaction
350
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00]]
351
-  (0.8ms) commit transaction
352
-  (0.1ms) begin transaction
353
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00], ["event_type", :Create], ["object_id", 7], ["object_type", "Message"], ["recipient_id", 13], ["recipient_type", "User"], ["sender_id", 14], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 20:53:55 UTC +00:00]]
354
-  (10.2ms) commit transaction
355
- 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
356
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
357
- Connecting to database specified by database.yml
358
-  (0.1ms) begin transaction
359
- SQL (5.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
360
-  (2.6ms) commit transaction
361
-  (0.1ms) begin transaction
362
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
363
-  (0.9ms) commit transaction
364
-  (0.1ms) begin transaction
365
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
366
-  (6.2ms) commit transaction
367
-  (0.1ms) begin transaction
368
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["event_type", :Create], ["object_id", 8], ["object_type", "Message"], ["recipient_id", 15], ["recipient_type", "User"], ["sender_id", 16], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
369
-  (5.7ms) commit transaction
370
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
371
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
372
-  (0.0ms) begin transaction
373
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
374
-  (11.8ms) commit transaction
375
-  (0.1ms) begin transaction
376
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
377
-  (8.2ms) commit transaction
378
-  (0.1ms) begin transaction
379
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
380
-  (1.3ms) commit transaction
381
-  (0.0ms) begin transaction
382
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["event_type", :Updated], ["object_id", 9], ["object_type", "Message"], ["recipient_id", 17], ["recipient_type", "User"], ["sender_id", 18], ["sender_type", 0], ["text", nil], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
383
-  (1.7ms) commit transaction
384
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 17 ORDER BY "news_feed_events"."id" DESC LIMIT 1
385
-  (0.0ms) begin transaction
386
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
387
-  (4.0ms) commit transaction
388
-  (0.0ms) begin transaction
389
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
390
-  (1.1ms) commit transaction
391
-  (0.1ms) begin transaction
392
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
393
-  (8.6ms) commit transaction
394
-  (0.1ms) begin transaction
395
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["event_type", :Send], ["object_id", 10], ["object_type", "Message"], ["recipient_id", 19], ["recipient_type", "User"], ["sender_id", 20], ["sender_type", 0], ["text", nil], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
396
-  (1.2ms) commit transaction
397
-  (0.1ms) begin transaction
398
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["event_type", :Send], ["object_id", 10], ["object_type", "Message"], ["recipient_id", 20], ["recipient_type", "User"], ["sender_id", 20], ["sender_type", 0], ["text", nil], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
399
-  (1.0ms) commit transaction
400
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 19
401
-  (0.1ms) begin transaction
402
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
403
-  (3.5ms) commit transaction
404
-  (0.1ms) begin transaction
405
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
406
-  (1.0ms) commit transaction
407
-  (0.1ms) begin transaction
408
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
409
-  (1.4ms) commit transaction
410
-  (0.1ms) begin transaction
411
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00], ["event_type", :Updated], ["object_id", 22], ["object_type", "User"], ["recipient_id", 22], ["recipient_type", "User"], ["sender_id", 22], ["sender_type", 0], ["text", nil], ["updated_at", Tue, 07 Aug 2012 21:03:01 UTC +00:00]]
412
-  (1.1ms) commit transaction
413
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 21 ORDER BY "news_feed_events"."id" DESC LIMIT 1
414
- Connecting to database specified by database.yml
415
-  (0.1ms) begin transaction
416
- SQL (15.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
417
-  (4.6ms) commit transaction
418
-  (0.1ms) begin transaction
419
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
420
-  (8.0ms) commit transaction
421
-  (0.0ms) begin transaction
422
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
423
-  (2.6ms) commit transaction
424
-  (0.1ms) begin transaction
425
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["event_type", :Create], ["object_id", 12], ["object_type", "Message"], ["recipient_id", 23], ["recipient_type", "User"], ["sender_id", 24], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
426
-  (9.3ms) commit transaction
427
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 23 ORDER BY "news_feed_events"."id" DESC LIMIT 1
428
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
429
-  (0.1ms) begin transaction
430
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
431
-  (1.5ms) commit transaction
432
-  (0.1ms) begin transaction
433
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
434
-  (1.4ms) commit transaction
435
-  (0.0ms) begin transaction
436
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
437
-  (1.0ms) commit transaction
438
-  (0.1ms) begin transaction
439
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
440
-  (1.2ms) commit transaction
441
-  (0.1ms) begin transaction
442
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
443
-  (1.1ms) commit transaction
444
-  (0.1ms) begin transaction
445
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
446
-  (1.1ms) commit transaction
447
-  (0.1ms) begin transaction
448
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
449
-  (1.1ms) commit transaction
450
-  (0.0ms) begin transaction
451
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
452
-  (0.9ms) commit transaction
453
-  (0.0ms) begin transaction
454
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:05:28 UTC +00:00]]
455
-  (0.9ms) commit transaction
456
- Connecting to database specified by database.yml
457
-  (0.1ms) begin transaction
458
- SQL (10.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
459
-  (5.8ms) commit transaction
460
-  (0.1ms) begin transaction
461
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
462
-  (2.2ms) commit transaction
463
-  (0.1ms) begin transaction
464
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
465
-  (3.1ms) commit transaction
466
-  (0.1ms) begin transaction
467
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["event_type", :Create], ["object_id", 16], ["object_type", "Message"], ["recipient_id", 31], ["recipient_type", "User"], ["sender_id", 32], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
468
-  (1.3ms) commit transaction
469
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 31 ORDER BY "news_feed_events"."id" DESC LIMIT 1
470
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
471
-  (0.1ms) begin transaction
472
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
473
-  (1.1ms) commit transaction
474
-  (0.0ms) begin transaction
475
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
476
-  (0.8ms) commit transaction
477
-  (0.0ms) begin transaction
478
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
479
-  (1.1ms) commit transaction
480
-  (0.0ms) begin transaction
481
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["event_type", :Delete], ["object_id", 17], ["object_type", "Message"], ["recipient_id", 33], ["recipient_type", "User"], ["sender_id", 34], ["sender_type", 0], ["text", "translation missing: en.news_feeds.delete_object"], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
482
-  (9.1ms) commit transaction
483
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 33 ORDER BY "news_feed_events"."id" DESC LIMIT 1
484
-  (0.1ms) begin transaction
485
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
486
-  (0.9ms) commit transaction
487
-  (0.0ms) begin transaction
488
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
489
-  (1.1ms) commit transaction
490
-  (0.0ms) begin transaction
491
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
492
-  (0.9ms) commit transaction
493
-  (0.0ms) begin transaction
494
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["event_type", :Send], ["object_id", 18], ["object_type", "Message"], ["recipient_id", 35], ["recipient_type", "User"], ["sender_id", 36], ["sender_type", 0], ["text", "translation missing: en.news_feeds.send_object"], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
495
-  (9.1ms) commit transaction
496
-  (0.0ms) begin transaction
497
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["event_type", :Send], ["object_id", 18], ["object_type", "Message"], ["recipient_id", 36], ["recipient_type", "User"], ["sender_id", 36], ["sender_type", 0], ["text", "translation missing: en.news_feeds.send_object"], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
498
-  (1.0ms) commit transaction
499
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 35
500
-  (0.1ms) begin transaction
501
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
502
-  (1.0ms) commit transaction
503
-  (0.0ms) begin transaction
504
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
505
-  (0.9ms) commit transaction
506
-  (0.0ms) begin transaction
507
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
508
-  (0.9ms) commit transaction
509
-  (0.0ms) begin transaction
510
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00], ["event_type", :Update], ["object_id", 38], ["object_type", "User"], ["recipient_id", 38], ["recipient_type", "User"], ["sender_id", 38], ["sender_type", 0], ["text", "translation missing: en.news_feeds.update_object"], ["updated_at", Tue, 07 Aug 2012 21:08:42 UTC +00:00]]
511
-  (8.6ms) commit transaction
512
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 37 ORDER BY "news_feed_events"."id" DESC LIMIT 1
513
- Connecting to database specified by database.yml
514
-  (0.2ms) begin transaction
515
- SQL (5.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
516
-  (1.7ms) commit transaction
517
-  (0.1ms) begin transaction
518
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
519
-  (1.0ms) commit transaction
520
-  (0.0ms) begin transaction
521
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
522
-  (1.0ms) commit transaction
523
-  (0.1ms) begin transaction
524
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["event_type", :Create], ["object_id", 20], ["object_type", "Message"], ["recipient_id", 39], ["recipient_type", "User"], ["sender_id", 40], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
525
-  (1.1ms) commit transaction
526
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 39 ORDER BY "news_feed_events"."id" DESC LIMIT 1
527
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
528
-  (0.1ms) begin transaction
529
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
530
-  (3.1ms) commit transaction
531
-  (0.1ms) begin transaction
532
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
533
-  (2.3ms) commit transaction
534
-  (0.0ms) begin transaction
535
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
536
-  (2.1ms) commit transaction
537
-  (0.1ms) begin transaction
538
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["event_type", :Delete], ["object_id", 21], ["object_type", "Message"], ["recipient_id", 41], ["recipient_type", "User"], ["sender_id", 42], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
539
-  (3.2ms) commit transaction
540
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 41 ORDER BY "news_feed_events"."id" DESC LIMIT 1
541
-  (0.1ms) begin transaction
542
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
543
-  (2.7ms) commit transaction
544
-  (0.0ms) begin transaction
545
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
546
-  (0.8ms) commit transaction
547
-  (0.0ms) begin transaction
548
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
549
-  (1.0ms) commit transaction
550
-  (0.1ms) begin transaction
551
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["event_type", :Send], ["object_id", 22], ["object_type", "Message"], ["recipient_id", 43], ["recipient_type", "User"], ["sender_id", 44], ["sender_type", 0], ["text", "Bob Smith has sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
552
-  (1.1ms) commit transaction
553
-  (0.1ms) begin transaction
554
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["event_type", :Send], ["object_id", 22], ["object_type", "Message"], ["recipient_id", 44], ["recipient_type", "User"], ["sender_id", 44], ["sender_type", 0], ["text", "You have sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
555
-  (1.1ms) commit transaction
556
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 43
557
-  (0.1ms) begin transaction
558
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
559
-  (1.1ms) commit transaction
560
-  (0.1ms) begin transaction
561
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
562
-  (1.0ms) commit transaction
563
-  (0.1ms) begin transaction
564
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
565
-  (1.0ms) commit transaction
566
-  (0.1ms) begin transaction
567
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00], ["event_type", :Update], ["object_id", 46], ["object_type", "User"], ["recipient_id", 46], ["recipient_type", "User"], ["sender_id", 46], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:09:53 UTC +00:00]]
568
-  (1.1ms) commit transaction
569
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 45 ORDER BY "news_feed_events"."id" DESC LIMIT 1
570
- Connecting to database specified by database.yml
571
-  (0.1ms) begin transaction
572
- SQL (3.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
573
-  (1.9ms) commit transaction
574
-  (0.0ms) begin transaction
575
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
576
-  (1.0ms) commit transaction
577
-  (0.0ms) begin transaction
578
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
579
-  (3.7ms) commit transaction
580
-  (0.1ms) begin transaction
581
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["event_type", :Create], ["object_id", 24], ["object_type", "Message"], ["recipient_id", 47], ["recipient_type", "User"], ["sender_id", 48], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
582
-  (1.0ms) commit transaction
583
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 47 ORDER BY "news_feed_events"."id" DESC LIMIT 1
584
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
585
-  (0.1ms) begin transaction
586
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
587
-  (1.2ms) commit transaction
588
-  (0.0ms) begin transaction
589
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
590
-  (1.1ms) commit transaction
591
-  (0.0ms) begin transaction
592
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
593
-  (1.0ms) commit transaction
594
-  (0.0ms) begin transaction
595
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["event_type", :Delete], ["object_id", 25], ["object_type", "Message"], ["recipient_id", 49], ["recipient_type", "User"], ["sender_id", 50], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
596
-  (0.9ms) commit transaction
597
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 49 ORDER BY "news_feed_events"."id" DESC LIMIT 1
598
-  (0.0ms) begin transaction
599
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
600
-  (0.9ms) commit transaction
601
-  (0.0ms) begin transaction
602
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
603
-  (0.8ms) commit transaction
604
-  (0.0ms) begin transaction
605
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
606
-  (0.8ms) commit transaction
607
-  (0.0ms) begin transaction
608
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["event_type", :Send], ["object_id", 26], ["object_type", "Message"], ["recipient_id", 51], ["recipient_type", "User"], ["sender_id", 52], ["sender_type", 0], ["text", "Bob Smith has sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
609
-  (1.2ms) commit transaction
610
-  (0.0ms) begin transaction
611
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["event_type", :Send], ["object_id", 26], ["object_type", "Message"], ["recipient_id", 52], ["recipient_type", "User"], ["sender_id", 52], ["sender_type", 0], ["text", "You have sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
612
-  (1.0ms) commit transaction
613
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 51
614
-  (0.1ms) begin transaction
615
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
616
-  (1.1ms) commit transaction
617
-  (0.1ms) begin transaction
618
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
619
-  (1.2ms) commit transaction
620
-  (0.0ms) begin transaction
621
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
622
-  (1.1ms) commit transaction
623
-  (0.1ms) begin transaction
624
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00], ["event_type", :Update], ["object_id", 54], ["object_type", "User"], ["recipient_id", 54], ["recipient_type", "User"], ["sender_id", 54], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:10:49 UTC +00:00]]
625
-  (1.0ms) commit transaction
626
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 53 ORDER BY "news_feed_events"."id" DESC LIMIT 1
627
- Connecting to database specified by database.yml
628
-  (0.1ms) begin transaction
629
- SQL (5.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
630
-  (2.1ms) commit transaction
631
-  (0.1ms) begin transaction
632
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
633
-  (1.1ms) commit transaction
634
-  (0.1ms) begin transaction
635
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
636
-  (1.1ms) commit transaction
637
-  (0.1ms) begin transaction
638
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["event_type", :Create], ["object_id", 28], ["object_type", "Message"], ["recipient_id", 55], ["recipient_type", "User"], ["sender_id", 56], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
639
-  (1.1ms) commit transaction
640
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 55 ORDER BY "news_feed_events"."id" DESC LIMIT 1
641
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
8
+  (31.0ms) select sqlite_version(*)
9
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
10
+  (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) 
11
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
12
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
13
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
14
+  (0.0ms) PRAGMA index_list("schema_migrations")
15
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
16
+  (0.1ms) SELECT version FROM "schema_migrations"
17
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
642
18
   (0.1ms) begin transaction
643
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
644
-  (1.3ms) commit transaction
645
-  (0.0ms) begin transaction
646
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
647
-  (0.9ms) commit transaction
648
-  (0.0ms) begin transaction
649
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
650
-  (0.9ms) commit transaction
651
-  (0.0ms) begin transaction
652
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["event_type", :Delete], ["object_id", 29], ["object_type", "Message"], ["recipient_id", 57], ["recipient_type", "User"], ["sender_id", 58], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
653
-  (1.4ms) commit transaction
654
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 57 ORDER BY "news_feed_events"."id" DESC LIMIT 1
655
-  (0.1ms) begin transaction
656
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
657
-  (1.4ms) commit transaction
658
-  (0.0ms) begin transaction
659
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
660
-  (0.9ms) commit transaction
661
-  (0.0ms) begin transaction
662
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
663
-  (1.1ms) commit transaction
19
+  (0.0ms) rollback transaction
664
20
   (0.1ms) begin transaction
665
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["event_type", :Send], ["object_id", 30], ["object_type", "Message"], ["recipient_id", 59], ["recipient_type", "User"], ["sender_id", 60], ["sender_type", 0], ["text", "Bob Smith has sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
666
-  (1.2ms) commit transaction
21
+ SQL (29.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
22
+  (0.1ms) commit transaction
667
23
   (0.0ms) begin transaction
668
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["event_type", :Send], ["object_id", 30], ["object_type", "Message"], ["recipient_id", 60], ["recipient_type", "User"], ["sender_id", 60], ["sender_type", 0], ["text", "You have sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
669
-  (1.1ms) commit transaction
670
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" 
671
-  (0.1ms) begin transaction
672
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
673
-  (3.1ms) commit transaction
674
-  (0.0ms) begin transaction
675
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
676
-  (2.0ms) commit transaction
677
-  (0.1ms) begin transaction
678
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
679
-  (2.5ms) commit transaction
680
-  (0.1ms) begin transaction
681
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00], ["event_type", :Update], ["object_id", 62], ["object_type", "User"], ["recipient_id", 62], ["recipient_type", "User"], ["sender_id", 62], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:11:19 UTC +00:00]]
682
-  (2.7ms) commit transaction
683
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 61 ORDER BY "news_feed_events"."id" DESC LIMIT 1
684
- Connecting to database specified by database.yml
685
-  (0.1ms) begin transaction
686
- SQL (6.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00]]
687
-  (2.7ms) commit transaction
688
-  (0.1ms) begin transaction
689
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00]]
690
-  (0.9ms) commit transaction
24
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
25
+  (0.0ms) commit transaction
691
26
   (0.1ms) begin transaction
692
- SQL (0.7ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00]]
693
-  (5.7ms) commit transaction
27
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
28
+  (0.1ms) commit transaction
694
29
   (0.1ms) begin transaction
695
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00], ["event_type", :Create], ["object_id", 32], ["object_type", "Message"], ["recipient_id", 63], ["recipient_type", "User"], ["sender_id", 64], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:30 UTC +00:00]]
696
-  (1.2ms) commit transaction
697
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 63 ORDER BY "news_feed_events"."id" DESC LIMIT 1
698
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
30
+ SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
31
+  (0.1ms) commit transaction
32
+ 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
33
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
699
34
   (0.1ms) begin transaction
700
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
701
-  (1.4ms) commit transaction
702
-  (0.1ms) begin transaction
703
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
704
-  (1.1ms) commit transaction
705
-  (0.0ms) begin transaction
706
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
707
-  (0.9ms) commit transaction
708
-  (0.1ms) begin transaction
709
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["event_type", :Delete], ["object_id", 33], ["object_type", "Message"], ["recipient_id", 65], ["recipient_type", "User"], ["sender_id", 66], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
710
-  (1.3ms) commit transaction
711
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 65 ORDER BY "news_feed_events"."id" DESC LIMIT 1
35
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
36
+  (0.1ms) commit transaction
712
37
   (0.0ms) begin transaction
713
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
714
-  (1.3ms) commit transaction
38
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
39
+  (0.0ms) commit transaction
715
40
   (0.0ms) begin transaction
716
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
717
-  (1.2ms) commit transaction
41
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
42
+  (0.1ms) commit transaction
718
43
   (0.0ms) begin transaction
719
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
720
-  (1.1ms) commit transaction
721
-  (0.0ms) begin transaction
722
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["event_type", :Send], ["object_id", 34], ["object_type", "Message"], ["recipient_id", 67], ["recipient_type", "User"], ["sender_id", 68], ["sender_type", 0], ["text", "Bob Smith has sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
723
-  (1.5ms) commit transaction
44
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
45
+  (0.1ms) commit transaction
46
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
724
47
   (0.1ms) begin transaction
725
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["event_type", :Send], ["object_id", 34], ["object_type", "Message"], ["recipient_id", 68], ["recipient_type", "User"], ["sender_id", 68], ["sender_type", 0], ["text", "You have sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
726
-  (1.7ms) commit transaction
727
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" 
728
-  (0.2ms) begin transaction
729
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
730
-  (1.3ms) commit transaction
731
-  (0.1ms) begin transaction
732
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
733
-  (1.2ms) commit transaction
734
-  (0.0ms) begin transaction
735
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
736
-  (1.8ms) commit transaction
48
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
49
+  (0.0ms) commit transaction
737
50
   (0.0ms) begin transaction
738
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00], ["event_type", :Update], ["object_id", 70], ["object_type", "User"], ["recipient_id", 70], ["recipient_type", "User"], ["sender_id", 70], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:12:31 UTC +00:00]]
739
-  (1.0ms) commit transaction
740
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 69 ORDER BY "news_feed_events"."id" DESC LIMIT 1
741
- Connecting to database specified by database.yml
742
-  (0.1ms) begin transaction
743
- SQL (20.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
744
-  (3.9ms) commit transaction
51
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
52
+  (0.0ms) commit transaction
745
53
   (0.0ms) begin transaction
746
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
747
-  (0.9ms) commit transaction
54
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
55
+  (0.0ms) commit transaction
748
56
   (0.0ms) begin transaction
749
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
750
-  (3.3ms) commit transaction
57
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
58
+  (0.1ms) commit transaction
751
59
   (0.1ms) begin transaction
752
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["event_type", :Create], ["object_id", 36], ["object_type", "Message"], ["recipient_id", 71], ["recipient_type", "User"], ["sender_id", 72], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
753
-  (7.3ms) commit transaction
754
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 71 ORDER BY "news_feed_events"."id" DESC LIMIT 1
755
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
756
-  (0.1ms) begin transaction
757
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
758
-  (3.3ms) commit transaction
759
-  (0.0ms) begin transaction
760
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
761
-  (1.9ms) commit transaction
762
-  (0.0ms) begin transaction
763
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
764
-  (2.0ms) commit transaction
765
-  (0.0ms) begin transaction
766
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["event_type", :Delete], ["object_id", 37], ["object_type", "Message"], ["recipient_id", 73], ["recipient_type", "User"], ["sender_id", 74], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
767
-  (2.4ms) commit transaction
768
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 73 ORDER BY "news_feed_events"."id" DESC LIMIT 1
769
-  (0.0ms) begin transaction
770
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
771
-  (2.0ms) commit transaction
772
-  (0.0ms) begin transaction
773
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
774
-  (1.7ms) commit transaction
775
-  (0.0ms) begin transaction
776
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
777
-  (2.0ms) commit transaction
778
-  (0.0ms) begin transaction
779
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["event_type", :Send], ["object_id", 38], ["object_type", "Message"], ["recipient_id", 75], ["recipient_type", "User"], ["sender_id", 76], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
780
-  (2.4ms) commit transaction
781
-  (0.0ms) begin transaction
782
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["event_type", :Send], ["object_id", 38], ["object_type", "Message"], ["recipient_id", 76], ["recipient_type", "User"], ["sender_id", 76], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
783
-  (1.2ms) commit transaction
784
- NewsFeedEvent Load (0.5ms) SELECT "news_feed_events".* FROM "news_feed_events" 
60
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
61
+  (0.0ms) commit transaction
62
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
785
63
   (0.1ms) begin transaction
786
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
787
-  (1.2ms) commit transaction
64
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
65
+  (0.0ms) commit transaction
788
66
   (0.0ms) begin transaction
789
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
790
-  (1.1ms) commit transaction
67
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
68
+  (0.0ms) commit transaction
791
69
   (0.0ms) begin transaction
792
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
793
-  (1.2ms) commit transaction
794
-  (0.0ms) begin transaction
795
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00], ["event_type", :Update], ["object_id", 78], ["object_type", "User"], ["recipient_id", 78], ["recipient_type", "User"], ["sender_id", 78], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:12:49 UTC +00:00]]
796
-  (1.0ms) commit transaction
797
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 77 ORDER BY "news_feed_events"."id" DESC LIMIT 1
798
- Connecting to database specified by database.yml
799
-  (0.1ms) begin transaction
800
- SQL (12.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
801
-  (7.6ms) commit transaction
802
-  (0.1ms) begin transaction
803
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
804
-  (2.1ms) commit transaction
805
-  (0.1ms) begin transaction
806
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
807
-  (2.5ms) commit transaction
808
-  (0.1ms) begin transaction
809
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["event_type", :Create], ["object_id", 40], ["object_type", "Message"], ["recipient_id", 79], ["recipient_type", "User"], ["sender_id", 80], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
810
-  (6.5ms) commit transaction
811
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 79 ORDER BY "news_feed_events"."id" DESC LIMIT 1
812
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
70
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
71
+  (0.0ms) commit transaction
813
72
   (0.0ms) begin transaction
814
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
815
-  (2.5ms) commit transaction
73
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
74
+  (0.0ms) commit transaction
816
75
   (0.0ms) begin transaction
817
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
818
-  (1.6ms) commit transaction
76
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
77
+  (0.0ms) commit transaction
78
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
79
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
819
80
   (0.0ms) begin transaction
820
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
821
-  (7.4ms) commit transaction
81
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
82
+  (0.0ms) commit transaction
822
83
   (0.0ms) begin transaction
823
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["event_type", :Delete], ["object_id", 41], ["object_type", "Message"], ["recipient_id", 81], ["recipient_type", "User"], ["sender_id", 82], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
824
-  (1.1ms) commit transaction
825
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 81 ORDER BY "news_feed_events"."id" DESC LIMIT 1
826
-  (0.0ms) begin transaction
827
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
828
-  (1.3ms) commit transaction
84
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
85
+  (0.0ms) commit transaction
829
86
   (0.0ms) begin transaction
830
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
831
-  (1.1ms) commit transaction
87
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
88
+  (0.0ms) commit transaction
832
89
   (0.0ms) begin transaction
833
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
834
-  (1.8ms) commit transaction
835
-  (0.0ms) begin transaction
836
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["event_type", :Send], ["object_id", 42], ["object_type", "Message"], ["recipient_id", 83], ["recipient_type", "User"], ["sender_id", 84], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
837
-  (2.4ms) commit transaction
838
-  (0.1ms) begin transaction
839
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["event_type", :Send], ["object_id", 42], ["object_type", "Message"], ["recipient_id", 84], ["recipient_type", "User"], ["sender_id", 84], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
840
-  (2.3ms) commit transaction
841
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 83 ORDER BY "news_feed_events"."id" DESC LIMIT 1
842
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 84 ORDER BY "news_feed_events"."id" DESC LIMIT 1
843
-  (0.0ms) begin transaction
844
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
845
-  (2.0ms) commit transaction
846
-  (0.1ms) begin transaction
847
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
848
-  (1.8ms) commit transaction
849
-  (0.1ms) begin transaction
850
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
851
-  (2.2ms) commit transaction
852
-  (0.1ms) begin transaction
853
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00], ["event_type", :Update], ["object_id", 86], ["object_type", "User"], ["recipient_id", 86], ["recipient_type", "User"], ["sender_id", 86], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:13:34 UTC +00:00]]
854
-  (2.9ms) commit transaction
855
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 85 ORDER BY "news_feed_events"."id" DESC LIMIT 1
90
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 03:18:23 UTC +00:00]]
91
+  (0.0ms) commit transaction
92
+ 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
856
93
  Connecting to database specified by database.yml
94
+  (29.8ms) select sqlite_version(*)
95
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
96
+  (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) 
97
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
98
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
99
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
100
+  (0.0ms) PRAGMA index_list("schema_migrations")
101
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
102
+  (0.0ms) SELECT version FROM "schema_migrations"
103
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
857
104
   (0.1ms) begin transaction
858
- SQL (5.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:07 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:07 UTC +00:00]]
859
-  (2.2ms) commit transaction
860
-  (0.1ms) begin transaction
861
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:07 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:07 UTC +00:00]]
862
-  (1.3ms) commit transaction
863
-  (0.1ms) begin transaction
864
- SQL (0.7ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
865
-  (1.5ms) commit transaction
866
-  (0.1ms) begin transaction
867
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["event_type", :Create], ["object_id", 44], ["object_type", "Message"], ["recipient_id", 87], ["recipient_type", "User"], ["sender_id", 88], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
868
-  (1.5ms) commit transaction
869
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 87 ORDER BY "news_feed_events"."id" DESC LIMIT 1
870
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
105
+  (0.1ms) rollback transaction
871
106
   (0.1ms) begin transaction
872
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
873
-  (1.0ms) commit transaction
874
-  (0.0ms) begin transaction
875
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
876
-  (1.2ms) commit transaction
877
-  (0.0ms) begin transaction
878
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
879
-  (1.0ms) commit transaction
880
-  (0.0ms) begin transaction
881
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["event_type", :Delete], ["object_id", 45], ["object_type", "Message"], ["recipient_id", 89], ["recipient_type", "User"], ["sender_id", 90], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
882
-  (1.1ms) commit transaction
883
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 89 ORDER BY "news_feed_events"."id" DESC LIMIT 1
884
-  (0.0ms) begin transaction
885
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
886
-  (2.4ms) commit transaction
887
-  (0.0ms) begin transaction
888
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
889
-  (2.0ms) commit transaction
890
-  (0.0ms) begin transaction
891
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
892
-  (2.2ms) commit transaction
893
-  (0.0ms) begin transaction
894
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["event_type", :Send], ["object_id", 46], ["object_type", "Message"], ["recipient_id", 91], ["recipient_type", "User"], ["sender_id", 92], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
895
-  (2.9ms) commit transaction
896
-  (0.0ms) begin transaction
897
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["event_type", :Send], ["object_id", 46], ["object_type", "Message"], ["recipient_id", 92], ["recipient_type", "User"], ["sender_id", 92], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
898
-  (2.0ms) commit transaction
899
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 91 ORDER BY "news_feed_events"."id" DESC LIMIT 1
900
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 92 ORDER BY "news_feed_events"."id" DESC LIMIT 1
901
-  (0.0ms) begin transaction
902
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
903
-  (2.4ms) commit transaction
904
-  (0.1ms) begin transaction
905
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
906
-  (1.6ms) commit transaction
907
-  (0.0ms) begin transaction
908
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
909
-  (1.5ms) commit transaction
107
+ SQL (38.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
108
+  (0.1ms) commit transaction
910
109
   (0.0ms) begin transaction
911
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00], ["event_type", :Update], ["object_id", 94], ["object_type", "User"], ["recipient_id", 94], ["recipient_type", "User"], ["sender_id", 94], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:14:08 UTC +00:00]]
912
-  (2.6ms) commit transaction
913
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 94
914
- Connecting to database specified by database.yml
110
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
111
+  (0.0ms) commit transaction
915
112
   (0.1ms) begin transaction
916
- SQL (4.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
917
-  (1.6ms) commit transaction
113
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
114
+  (0.0ms) commit transaction
918
115
   (0.1ms) begin transaction
919
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
920
-  (0.8ms) commit transaction
921
-  (0.1ms) begin transaction
922
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
923
-  (0.7ms) commit transaction
924
-  (0.1ms) begin transaction
925
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["event_type", :Create], ["object_id", 48], ["object_type", "Message"], ["recipient_id", 95], ["recipient_type", "User"], ["sender_id", 96], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
926
-  (1.1ms) commit transaction
927
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 95 ORDER BY "news_feed_events"."id" DESC LIMIT 1
116
+ SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
117
+  (0.1ms) commit transaction
118
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
928
119
  NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
929
-  (0.0ms) begin transaction
930
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
931
-  (1.0ms) commit transaction
932
-  (0.0ms) begin transaction
933
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
934
-  (0.9ms) commit transaction
935
-  (0.0ms) begin transaction
936
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
937
-  (1.3ms) commit transaction
938
-  (0.1ms) begin transaction
939
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["event_type", :Delete], ["object_id", 49], ["object_type", "Message"], ["recipient_id", 97], ["recipient_type", "User"], ["sender_id", 98], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
940
-  (1.2ms) commit transaction
941
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 97 ORDER BY "news_feed_events"."id" DESC LIMIT 1
942
-  (0.1ms) begin transaction
943
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
944
-  (1.0ms) commit transaction
945
-  (0.0ms) begin transaction
946
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
947
-  (1.1ms) commit transaction
948
-  (0.0ms) begin transaction
949
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
950
-  (1.2ms) commit transaction
951
-  (0.0ms) begin transaction
952
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["event_type", :Send], ["object_id", 50], ["object_type", "Message"], ["recipient_id", 99], ["recipient_type", "User"], ["sender_id", 100], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
953
-  (2.5ms) commit transaction
954
-  (0.1ms) begin transaction
955
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["event_type", :Send], ["object_id", 50], ["object_type", "Message"], ["recipient_id", 100], ["recipient_type", "User"], ["sender_id", 100], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
956
-  (2.8ms) commit transaction
957
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 99 ORDER BY "news_feed_events"."id" DESC LIMIT 1
958
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 100 ORDER BY "news_feed_events"."id" DESC LIMIT 1
959
-  (0.0ms) begin transaction
960
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
961
-  (2.3ms) commit transaction
962
-  (0.0ms) begin transaction
963
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
964
-  (1.8ms) commit transaction
965
120
   (0.1ms) begin transaction
966
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
967
-  (2.5ms) commit transaction
121
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
122
+  (0.0ms) commit transaction
968
123
   (0.0ms) begin transaction
969
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00], ["event_type", :Update], ["object_id", 102], ["object_type", "User"], ["recipient_id", 102], ["recipient_type", "User"], ["sender_id", 102], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:14:38 UTC +00:00]]
970
-  (1.5ms) commit transaction
971
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 101 ORDER BY "news_feed_events"."id" DESC LIMIT 1
972
- Connecting to database specified by database.yml
973
-  (0.1ms) begin transaction
974
- SQL (6.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
975
-  (16.2ms) commit transaction
976
-  (0.1ms) begin transaction
977
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
978
-  (1.4ms) commit transaction
124
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
125
+  (0.0ms) commit transaction
979
126
   (0.1ms) begin transaction
980
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
981
-  (3.0ms) commit transaction
982
-  (0.1ms) begin transaction
983
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["event_type", :Create], ["object_id", 52], ["object_type", "Message"], ["recipient_id", 103], ["recipient_type", "User"], ["sender_id", 104], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
984
-  (1.2ms) commit transaction
985
- NewsFeedEvent Load (0.5ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 103 ORDER BY "news_feed_events"."id" DESC LIMIT 1
986
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
987
-  (0.1ms) begin transaction
988
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
989
-  (1.2ms) commit transaction
990
-  (0.1ms) begin transaction
991
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
992
-  (1.1ms) commit transaction
993
-  (0.0ms) begin transaction
994
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
995
-  (1.1ms) commit transaction
996
-  (0.1ms) begin transaction
997
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["event_type", :Delete], ["object_id", 53], ["object_type", "Message"], ["recipient_id", 105], ["recipient_type", "User"], ["sender_id", 106], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
998
-  (1.1ms) commit transaction
999
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 105 ORDER BY "news_feed_events"."id" DESC LIMIT 1
127
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
128
+  (0.1ms) commit transaction
1000
129
   (0.0ms) begin transaction
1001
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1002
-  (1.0ms) commit transaction
1003
-  (0.0ms) begin transaction
1004
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1005
-  (1.1ms) commit transaction
1006
-  (0.1ms) begin transaction
1007
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1008
-  (0.9ms) commit transaction
1009
-  (0.0ms) begin transaction
1010
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["event_type", :Send], ["object_id", 54], ["object_type", "Message"], ["recipient_id", 107], ["recipient_type", "User"], ["sender_id", 108], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1011
-  (1.0ms) commit transaction
1012
-  (0.1ms) begin transaction
1013
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["event_type", :Send], ["object_id", 54], ["object_type", "Message"], ["recipient_id", 108], ["recipient_type", "User"], ["sender_id", 108], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1014
-  (1.0ms) commit transaction
1015
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 107 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1016
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 108 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1017
-  (0.1ms) begin transaction
1018
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1019
-  (0.9ms) commit transaction
130
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
131
+  (0.0ms) commit transaction
132
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1020
133
   (0.0ms) begin transaction
1021
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1022
-  (0.9ms) commit transaction
134
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
135
+  (0.0ms) commit transaction
1023
136
   (0.0ms) begin transaction
1024
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1025
-  (1.0ms) commit transaction
1026
-  (0.1ms) begin transaction
1027
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00], ["event_type", :Update], ["object_id", 110], ["object_type", "User"], ["recipient_id", 110], ["recipient_type", "User"], ["sender_id", 110], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:15:11 UTC +00:00]]
1028
-  (1.0ms) commit transaction
1029
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 109 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1030
- Connecting to database specified by database.yml
1031
-  (0.1ms) begin transaction
1032
- SQL (3.9ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1033
-  (7.6ms) commit transaction
137
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
138
+  (0.0ms) commit transaction
1034
139
   (0.0ms) begin transaction
1035
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1036
-  (1.9ms) commit transaction
1037
-  (0.0ms) begin transaction
1038
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1039
-  (2.9ms) commit transaction
1040
-  (0.1ms) begin transaction
1041
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["event_type", :Create], ["object_id", 56], ["object_type", "Message"], ["recipient_id", 111], ["recipient_type", "User"], ["sender_id", 112], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1042
-  (5.2ms) commit transaction
1043
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 111 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1044
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
140
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
141
+  (0.0ms) commit transaction
1045
142
   (0.0ms) begin transaction
1046
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1047
-  (1.4ms) commit transaction
1048
-  (0.1ms) begin transaction
1049
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1050
-  (1.2ms) commit transaction
1051
-  (0.1ms) begin transaction
1052
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1053
-  (1.0ms) commit transaction
143
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
144
+  (0.0ms) commit transaction
1054
145
   (0.0ms) begin transaction
1055
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["event_type", :Delete], ["object_id", 57], ["object_type", "Message"], ["recipient_id", 113], ["recipient_type", "User"], ["sender_id", 114], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1056
-  (2.0ms) commit transaction
1057
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 113 ORDER BY "news_feed_events"."id" DESC LIMIT 1
146
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
147
+  (0.0ms) commit transaction
148
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1058
149
   (0.0ms) begin transaction
1059
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1060
-  (2.2ms) commit transaction
150
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
151
+  (0.0ms) commit transaction
1061
152
   (0.0ms) begin transaction
1062
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1063
-  (1.8ms) commit transaction
153
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
154
+  (0.0ms) commit transaction
1064
155
   (0.0ms) begin transaction
1065
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1066
-  (2.0ms) commit transaction
1067
-  (0.0ms) begin transaction
1068
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["event_type", :Send], ["object_id", 58], ["object_type", "Message"], ["recipient_id", 115], ["recipient_type", "User"], ["sender_id", 116], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1069
-  (2.5ms) commit transaction
1070
-  (0.1ms) begin transaction
1071
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["event_type", :Send], ["object_id", 58], ["object_type", "Message"], ["recipient_id", 116], ["recipient_type", "User"], ["sender_id", 116], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1072
-  (2.3ms) commit transaction
1073
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 115 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1074
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 116 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1075
-  (0.1ms) begin transaction
1076
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1077
-  (2.2ms) commit transaction
1078
-  (0.1ms) begin transaction
1079
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1080
-  (2.1ms) commit transaction
156
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
157
+  (0.0ms) commit transaction
1081
158
   (0.0ms) begin transaction
1082
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1083
-  (1.7ms) commit transaction
1084
-  (0.0ms) begin transaction
1085
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00], ["event_type", :Update], ["object_id", 118], ["object_type", "User"], ["recipient_id", 118], ["recipient_type", "User"], ["sender_id", 118], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:15:38 UTC +00:00]]
1086
-  (2.4ms) commit transaction
1087
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 117 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1088
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 117
1089
- Connecting to database specified by database.yml
1090
-  (0.1ms) begin transaction
1091
- SQL (5.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1092
-  (2.2ms) commit transaction
1093
-  (0.1ms) begin transaction
1094
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1095
-  (1.0ms) commit transaction
1096
-  (0.1ms) begin transaction
1097
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1098
-  (1.4ms) commit transaction
159
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
160
+  (0.0ms) commit transaction
1099
161
   (0.1ms) begin transaction
1100
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["event_type", :Create], ["object_id", 60], ["object_type", "Message"], ["recipient_id", 119], ["recipient_type", "User"], ["sender_id", 120], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1101
-  (1.4ms) commit transaction
1102
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 119 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1103
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1104
-  (0.1ms) begin transaction
1105
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1106
-  (1.1ms) commit transaction
1107
-  (0.0ms) begin transaction
1108
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1109
-  (0.9ms) commit transaction
1110
-  (0.0ms) begin transaction
1111
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1112
-  (1.1ms) commit transaction
1113
-  (0.0ms) begin transaction
1114
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00], ["event_type", :Delete], ["object_id", 61], ["object_type", "Message"], ["recipient_id", 121], ["recipient_type", "User"], ["sender_id", 122], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:04 UTC +00:00]]
1115
-  (1.2ms) commit transaction
1116
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 121 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1117
-  (0.0ms) begin transaction
1118
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1119
-  (1.2ms) commit transaction
162
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
163
+  (0.0ms) commit transaction
164
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
165
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1120
166
   (0.0ms) begin transaction
1121
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1122
-  (1.0ms) commit transaction
167
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
168
+  (0.0ms) commit transaction
1123
169
   (0.0ms) begin transaction
1124
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1125
-  (0.9ms) commit transaction
170
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
171
+  (0.0ms) commit transaction
1126
172
   (0.0ms) begin transaction
1127
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["event_type", :Send], ["object_id", 62], ["object_type", "Message"], ["recipient_id", 123], ["recipient_type", "User"], ["sender_id", 124], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1128
-  (0.9ms) commit transaction
173
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
174
+  (0.0ms) commit transaction
1129
175
   (0.0ms) begin transaction
1130
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["event_type", :Send], ["object_id", 62], ["object_type", "Message"], ["recipient_id", 124], ["recipient_type", "User"], ["sender_id", 124], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1131
-  (1.3ms) commit transaction
1132
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 123 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1133
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 124 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1134
-  (0.0ms) begin transaction
1135
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1136
-  (1.0ms) commit transaction
1137
-  (0.1ms) begin transaction
1138
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1139
-  (1.0ms) commit transaction
1140
-  (0.0ms) begin transaction
1141
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1142
-  (1.0ms) commit transaction
1143
-  (0.1ms) begin transaction
1144
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00], ["event_type", :Update], ["object_id", 126], ["object_type", "User"], ["recipient_id", 126], ["recipient_type", "User"], ["sender_id", 126], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:16:05 UTC +00:00]]
1145
-  (2.6ms) commit transaction
1146
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 126 ORDER BY "news_feed_events"."id" DESC LIMIT 1
176
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 03:19:30 UTC +00:00]]
177
+  (0.0ms) commit transaction
178
+ 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
1147
179
  Connecting to database specified by database.yml
180
+  (37.7ms) select sqlite_version(*)
181
+  (0.6ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
182
+  (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) 
183
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
184
+  (0.3ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
185
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
186
+  (0.0ms) PRAGMA index_list("schema_migrations")
187
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
188
+  (0.1ms) SELECT version FROM "schema_migrations"
189
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1148
190
   (0.1ms) begin transaction
1149
- SQL (5.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1150
-  (2.4ms) commit transaction
1151
-  (0.1ms) begin transaction
1152
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1153
-  (1.7ms) commit transaction
1154
-  (0.0ms) begin transaction
1155
- SQL (6.7ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1156
-  (1.6ms) commit transaction
1157
-  (0.1ms) begin transaction
1158
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["event_type", :Create], ["object_id", 64], ["object_type", "Message"], ["recipient_id", 127], ["recipient_type", "User"], ["sender_id", 128], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1159
-  (1.2ms) commit transaction
1160
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 127 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1161
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1162
-  (0.0ms) begin transaction
1163
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1164
-  (0.9ms) commit transaction
1165
-  (0.0ms) begin transaction
1166
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1167
-  (0.9ms) commit transaction
1168
-  (0.0ms) begin transaction
1169
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1170
-  (0.8ms) commit transaction
1171
-  (0.0ms) begin transaction
1172
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["event_type", :Delete], ["object_id", 65], ["object_type", "Message"], ["recipient_id", 129], ["recipient_type", "User"], ["sender_id", 130], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1173
-  (1.2ms) commit transaction
1174
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 129 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1175
-  (0.0ms) begin transaction
1176
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1177
-  (0.9ms) commit transaction
1178
-  (0.0ms) begin transaction
1179
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1180
-  (1.0ms) commit transaction
1181
-  (0.0ms) begin transaction
1182
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1183
-  (1.1ms) commit transaction
1184
-  (0.0ms) begin transaction
1185
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["event_type", :Send], ["object_id", 66], ["object_type", "Message"], ["recipient_id", 131], ["recipient_type", "User"], ["sender_id", 132], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1186
-  (1.1ms) commit transaction
1187
-  (0.1ms) begin transaction
1188
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["event_type", :Send], ["object_id", 66], ["object_type", "Message"], ["recipient_id", 132], ["recipient_type", "User"], ["sender_id", 132], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1189
-  (1.0ms) commit transaction
1190
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 131 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1191
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 132 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1192
-  (0.0ms) begin transaction
1193
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1194
-  (1.0ms) commit transaction
1195
-  (0.0ms) begin transaction
1196
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1197
-  (0.9ms) commit transaction
1198
-  (0.0ms) begin transaction
1199
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1200
-  (1.0ms) commit transaction
1201
-  (0.0ms) begin transaction
1202
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00], ["event_type", :Update], ["object_id", 134], ["object_type", "User"], ["recipient_id", 134], ["recipient_type", "User"], ["sender_id", 134], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:16:35 UTC +00:00]]
1203
-  (1.0ms) commit transaction
1204
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 134 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1205
- Connecting to database specified by database.yml
191
+  (0.0ms) rollback transaction
1206
192
   (0.1ms) begin transaction
1207
- SQL (6.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1208
-  (2.4ms) commit transaction
193
+ SQL (31.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
194
+  (0.1ms) commit transaction
1209
195
   (0.1ms) begin transaction
1210
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1211
-  (1.0ms) commit transaction
196
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
197
+  (0.0ms) commit transaction
1212
198
   (0.1ms) begin transaction
1213
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1214
-  (1.0ms) commit transaction
199
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
200
+  (0.1ms) commit transaction
1215
201
   (0.1ms) begin transaction
1216
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Create], ["object_id", 68], ["object_type", "Message"], ["recipient_id", 135], ["recipient_type", "User"], ["sender_id", 136], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1217
-  (1.1ms) commit transaction
1218
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 135 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1219
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1220
-  (0.0ms) begin transaction
1221
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1222
-  (1.0ms) commit transaction
1223
-  (0.0ms) begin transaction
1224
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1225
-  (1.0ms) commit transaction
202
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
203
+  (0.0ms) commit transaction
204
+ 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
205
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1226
206
   (0.1ms) begin transaction
1227
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1228
-  (1.0ms) commit transaction
1229
-  (0.1ms) begin transaction
1230
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Delete], ["object_id", 69], ["object_type", "Message"], ["recipient_id", 137], ["recipient_type", "User"], ["sender_id", 138], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1231
-  (1.1ms) commit transaction
1232
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 137 ORDER BY "news_feed_events"."id" DESC LIMIT 1
207
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
208
+  (0.0ms) commit transaction
1233
209
   (0.0ms) begin transaction
1234
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1235
-  (1.1ms) commit transaction
210
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
211
+  (0.0ms) commit transaction
1236
212
   (0.0ms) begin transaction
1237
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1238
-  (1.1ms) commit transaction
213
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
214
+  (0.0ms) commit transaction
1239
215
   (0.0ms) begin transaction
1240
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1241
-  (0.9ms) commit transaction
1242
-  (0.1ms) begin transaction
1243
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Delete], ["object_id", 70], ["object_type", "Message"], ["recipient_id", 139], ["recipient_type", "User"], ["sender_id", 140], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1244
-  (1.0ms) commit transaction
1245
-  (0.1ms) begin transaction
1246
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Create], ["object_id", 70], ["object_type", "Message"], ["recipient_id", 139], ["recipient_type", "User"], ["sender_id", 140], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1247
-  (0.9ms) commit transaction
1248
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 139
1249
-  (0.1ms) begin transaction
1250
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1251
-  (1.2ms) commit transaction
1252
-  (0.1ms) begin transaction
1253
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1254
-  (1.1ms) commit transaction
216
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
217
+  (0.0ms) commit transaction
218
+ 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
1255
219
   (0.0ms) begin transaction
1256
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1257
-  (0.9ms) commit transaction
1258
-  (0.0ms) begin transaction
1259
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Send], ["object_id", 71], ["object_type", "Message"], ["recipient_id", 141], ["recipient_type", "User"], ["sender_id", 142], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1260
-  (0.9ms) commit transaction
1261
-  (0.1ms) begin transaction
1262
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Send], ["object_id", 71], ["object_type", "Message"], ["recipient_id", 142], ["recipient_type", "User"], ["sender_id", 142], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1263
-  (2.7ms) commit transaction
1264
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 141 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1265
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 142 ORDER BY "news_feed_events"."id" DESC LIMIT 1
220
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
221
+  (0.0ms) commit transaction
1266
222
   (0.0ms) begin transaction
1267
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1268
-  (2.4ms) commit transaction
1269
-  (0.1ms) begin transaction
1270
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1271
-  (2.3ms) commit transaction
1272
-  (0.1ms) begin transaction
1273
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1274
-  (2.8ms) commit transaction
1275
-  (0.1ms) begin transaction
1276
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00], ["event_type", :Update], ["object_id", 144], ["object_type", "User"], ["recipient_id", 144], ["recipient_type", "User"], ["sender_id", 144], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:17:53 UTC +00:00]]
1277
-  (3.0ms) commit transaction
1278
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 144 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1279
- Connecting to database specified by database.yml
1280
-  (0.1ms) begin transaction
1281
- SQL (5.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1282
-  (2.4ms) commit transaction
1283
-  (0.0ms) begin transaction
1284
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1285
-  (1.0ms) commit transaction
1286
-  (0.1ms) begin transaction
1287
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1288
-  (4.6ms) commit transaction
1289
-  (0.1ms) begin transaction
1290
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Create], ["object_id", 73], ["object_type", "Message"], ["recipient_id", 145], ["recipient_type", "User"], ["sender_id", 146], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1291
-  (1.0ms) commit transaction
1292
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 145 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1293
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1294
-  (0.1ms) begin transaction
1295
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1296
-  (1.1ms) commit transaction
223
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
224
+  (0.0ms) commit transaction
1297
225
   (0.0ms) begin transaction
1298
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1299
-  (1.3ms) commit transaction
1300
-  (0.1ms) begin transaction
1301
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1302
-  (1.3ms) commit transaction
1303
-  (0.1ms) begin transaction
1304
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Delete], ["object_id", 74], ["object_type", "Message"], ["recipient_id", 147], ["recipient_type", "User"], ["sender_id", 148], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1305
-  (2.4ms) commit transaction
1306
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 147 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1307
-  (0.1ms) begin transaction
1308
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1309
-  (1.0ms) commit transaction
226
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
227
+  (0.0ms) commit transaction
1310
228
   (0.0ms) begin transaction
1311
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1312
-  (1.0ms) commit transaction
229
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
230
+  (0.0ms) commit transaction
1313
231
   (0.0ms) begin transaction
1314
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1315
-  (1.0ms) commit transaction
1316
-  (0.0ms) begin transaction
1317
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Delete], ["object_id", 75], ["object_type", "Message"], ["recipient_id", 149], ["recipient_type", "User"], ["sender_id", 150], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1318
-  (1.0ms) commit transaction
232
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
233
+  (0.0ms) commit transaction
234
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1319
235
   (0.0ms) begin transaction
1320
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Create], ["object_id", 75], ["object_type", "Message"], ["recipient_id", 149], ["recipient_type", "User"], ["sender_id", 150], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1321
-  (1.1ms) commit transaction
1322
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 149
1323
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 75
236
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
237
+  (0.0ms) commit transaction
1324
238
   (0.1ms) begin transaction
1325
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1326
-  (1.0ms) commit transaction
239
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
240
+  (0.0ms) commit transaction
1327
241
   (0.0ms) begin transaction
1328
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1329
-  (1.1ms) commit transaction
1330
-  (0.0ms) begin transaction
1331
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1332
-  (0.9ms) commit transaction
1333
-  (0.1ms) begin transaction
1334
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Send], ["object_id", 76], ["object_type", "Message"], ["recipient_id", 151], ["recipient_type", "User"], ["sender_id", 152], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1335
-  (1.2ms) commit transaction
242
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
243
+  (0.0ms) commit transaction
1336
244
   (0.1ms) begin transaction
1337
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Send], ["object_id", 76], ["object_type", "Message"], ["recipient_id", 152], ["recipient_type", "User"], ["sender_id", 152], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1338
-  (1.2ms) commit transaction
1339
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 151 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1340
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 152 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1341
-  (0.1ms) begin transaction
1342
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1343
-  (1.3ms) commit transaction
1344
-  (0.1ms) begin transaction
1345
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1346
-  (1.0ms) commit transaction
245
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
246
+  (0.1ms) commit transaction
1347
247
   (0.0ms) begin transaction
1348
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1349
-  (1.2ms) commit transaction
1350
-  (0.1ms) begin transaction
1351
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00], ["event_type", :Update], ["object_id", 154], ["object_type", "User"], ["recipient_id", 154], ["recipient_type", "User"], ["sender_id", 154], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:18:16 UTC +00:00]]
1352
-  (1.4ms) commit transaction
1353
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 154 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1354
- Connecting to database specified by database.yml
1355
- Connecting to database specified by database.yml
1356
- Connecting to database specified by database.yml
1357
- Connecting to database specified by database.yml
248
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
249
+  (0.0ms) commit transaction
250
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
251
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
252
+  (0.0ms) begin transaction
253
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
254
+  (0.0ms) commit transaction
255
+  (0.0ms) begin transaction
256
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
257
+  (0.0ms) commit transaction
258
+  (0.0ms) begin transaction
259
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
260
+  (0.0ms) commit transaction
261
+  (0.0ms) begin transaction
262
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 03:20:00 UTC +00:00]]
263
+  (0.0ms) commit transaction
264
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1358
265
  Connecting to database specified by database.yml
1359
-  (0.9ms) begin transaction
266
+  (34.5ms) select sqlite_version(*)
267
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
268
+  (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) 
269
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
270
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
271
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
272
+  (0.0ms) PRAGMA index_list("schema_migrations")
273
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
274
+  (0.0ms) SELECT version FROM "schema_migrations"
275
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
276
+  (0.1ms) begin transaction
1360
277
   (0.1ms) rollback transaction
1361
278
   (0.1ms) begin transaction
1362
- SQL (37.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:12 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:12 UTC +00:00]]
1363
-  (2.7ms) commit transaction
279
+ SQL (43.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
280
+  (0.1ms) commit transaction
1364
281
   (0.1ms) begin transaction
1365
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1366
-  (1.2ms) commit transaction
282
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
283
+  (0.1ms) commit transaction
1367
284
   (0.1ms) begin transaction
1368
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1369
-  (4.5ms) commit transaction
285
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
286
+  (0.1ms) commit transaction
1370
287
   (0.1ms) begin transaction
1371
- SQL (1.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Create], ["object_id", 78], ["object_type", "Message"], ["recipient_id", 155], ["recipient_type", "User"], ["sender_id", 156], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1372
-  (2.4ms) commit transaction
1373
- NewsFeedEvent Load (1.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 155 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1374
- NewsFeedEvent Load (0.9ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1375
-  (0.1ms) begin transaction
1376
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1377
-  (1.4ms) commit transaction
1378
-  (0.0ms) begin transaction
1379
- SQL (1.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1380
-  (2.9ms) commit transaction
288
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
289
+  (0.1ms) commit transaction
290
+ 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
291
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1381
292
   (0.1ms) begin transaction
1382
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1383
-  (1.5ms) commit transaction
1384
-  (0.1ms) begin transaction
1385
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Delete], ["object_id", 79], ["object_type", "Message"], ["recipient_id", 157], ["recipient_type", "User"], ["sender_id", 158], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1386
-  (2.1ms) commit transaction
1387
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 157 ORDER BY "news_feed_events"."id" DESC LIMIT 1
293
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
294
+  (0.1ms) commit transaction
1388
295
   (0.0ms) begin transaction
1389
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1390
-  (1.9ms) commit transaction
1391
-  (0.1ms) begin transaction
1392
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1393
-  (1.1ms) commit transaction
296
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
297
+  (0.0ms) commit transaction
298
+  (0.0ms) begin transaction
299
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
300
+  (0.0ms) commit transaction
1394
301
   (0.0ms) begin transaction
1395
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1396
-  (1.5ms) commit transaction
1397
-  (0.1ms) begin transaction
1398
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Delete], ["object_id", 80], ["object_type", "Message"], ["recipient_id", 159], ["recipient_type", "User"], ["sender_id", 160], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1399
-  (1.3ms) commit transaction
302
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
303
+  (0.0ms) commit transaction
304
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1400
305
   (0.0ms) begin transaction
1401
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Create], ["object_id", 80], ["object_type", "Message"], ["recipient_id", 159], ["recipient_type", "User"], ["sender_id", 160], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1402
-  (3.3ms) commit transaction
1403
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 159
306
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
307
+  (0.0ms) commit transaction
308
+  (0.0ms) begin transaction
309
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
310
+  (0.0ms) commit transaction
1404
311
   (0.0ms) begin transaction
1405
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1406
-  (1.2ms) commit transaction
312
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
313
+  (0.0ms) commit transaction
1407
314
   (0.0ms) begin transaction
1408
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1409
-  (1.1ms) commit transaction
315
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
316
+  (0.0ms) commit transaction
1410
317
   (0.0ms) begin transaction
1411
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1412
-  (1.8ms) commit transaction
318
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
319
+  (0.0ms) commit transaction
320
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
321
+  (0.0ms) begin transaction
322
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
323
+  (0.0ms) commit transaction
1413
324
   (0.0ms) begin transaction
1414
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Send], ["object_id", 81], ["object_type", "Message"], ["recipient_id", 161], ["recipient_type", "User"], ["sender_id", 162], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1415
-  (2.6ms) commit transaction
325
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
326
+  (0.0ms) commit transaction
1416
327
   (0.0ms) begin transaction
1417
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Send], ["object_id", 81], ["object_type", "Message"], ["recipient_id", 162], ["recipient_type", "User"], ["sender_id", 162], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1418
-  (1.0ms) commit transaction
1419
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 161 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1420
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 162 ORDER BY "news_feed_events"."id" DESC LIMIT 1
328
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
329
+  (0.0ms) commit transaction
1421
330
   (0.0ms) begin transaction
1422
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1423
-  (1.5ms) commit transaction
331
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
332
+  (0.0ms) commit transaction
1424
333
   (0.0ms) begin transaction
1425
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1426
-  (1.3ms) commit transaction
334
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
335
+  (0.0ms) commit transaction
336
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
337
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
338
+  (0.0ms) begin transaction
339
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
340
+  (0.0ms) commit transaction
341
+  (0.1ms) begin transaction
342
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
343
+  (0.0ms) commit transaction
1427
344
   (0.0ms) begin transaction
1428
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1429
-  (1.3ms) commit transaction
345
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
346
+  (0.0ms) commit transaction
1430
347
   (0.0ms) begin transaction
1431
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00], ["event_type", :Update], ["object_id", 164], ["object_type", "User"], ["recipient_id", 164], ["recipient_type", "User"], ["sender_id", 164], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:50:13 UTC +00:00]]
1432
-  (1.5ms) commit transaction
1433
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 164 ORDER BY "news_feed_events"."id" DESC LIMIT 1
348
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 03:20:27 UTC +00:00]]
349
+  (0.0ms) commit transaction
350
+ 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
351
+ Connecting to database specified by database.yml
352
+  (43.9ms) select sqlite_version(*)
353
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
354
+  (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) 
355
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
356
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
357
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
358
+  (0.0ms) PRAGMA index_list("schema_migrations")
359
+  (0.3ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
360
+  (0.1ms) SELECT version FROM "schema_migrations"
361
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1434
362
  Connecting to database specified by database.yml
1435
-  (0.7ms) begin transaction
363
+  (32.2ms) select sqlite_version(*)
364
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
365
+  (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) 
366
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
367
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
368
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
369
+  (0.0ms) PRAGMA index_list("schema_migrations")
370
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
371
+  (0.0ms) SELECT version FROM "schema_migrations"
372
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
373
+  (0.1ms) begin transaction
1436
374
   (0.0ms) rollback transaction
1437
375
   (0.1ms) begin transaction
1438
- SQL (40.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1439
-  (2.1ms) commit transaction
376
+ SQL (4.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
377
+  (0.1ms) commit transaction
1440
378
   (0.1ms) begin transaction
1441
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1442
-  (0.9ms) commit transaction
379
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
380
+  (0.0ms) commit transaction
1443
381
   (0.1ms) begin transaction
1444
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1445
-  (1.3ms) commit transaction
382
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
383
+  (0.1ms) commit transaction
1446
384
   (0.1ms) begin transaction
1447
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Create], ["object_id", 83], ["object_type", "Message"], ["recipient_id", 165], ["recipient_type", "User"], ["sender_id", 166], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1448
-  (10.9ms) commit transaction
1449
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 165 ORDER BY "news_feed_events"."id" DESC LIMIT 1
385
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
386
+  (0.1ms) commit transaction
387
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1450
388
  NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1451
389
   (0.1ms) begin transaction
1452
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1453
-  (1.3ms) commit transaction
390
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
391
+  (0.1ms) commit transaction
1454
392
   (0.0ms) begin transaction
1455
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1456
-  (8.6ms) commit transaction
1457
-  (0.1ms) begin transaction
1458
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1459
-  (1.2ms) commit transaction
393
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
394
+  (0.0ms) commit transaction
395
+  (0.0ms) begin transaction
396
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
397
+  (0.0ms) commit transaction
398
+  (0.1ms) begin transaction
399
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
400
+  (0.1ms) commit transaction
401
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1460
402
   (0.1ms) begin transaction
1461
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Delete], ["object_id", 84], ["object_type", "Message"], ["recipient_id", 167], ["recipient_type", "User"], ["sender_id", 168], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1462
-  (1.0ms) commit transaction
1463
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 167 ORDER BY "news_feed_events"."id" DESC LIMIT 1
403
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
404
+  (0.0ms) commit transaction
405
+  (0.0ms) begin transaction
406
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
407
+  (0.0ms) commit transaction
1464
408
   (0.0ms) begin transaction
1465
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1466
-  (8.9ms) commit transaction
1467
-  (0.1ms) begin transaction
1468
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1469
-  (1.0ms) commit transaction
409
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
410
+  (0.0ms) commit transaction
411
+  (0.0ms) begin transaction
412
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
413
+  (0.0ms) commit transaction
414
+  (0.0ms) begin transaction
415
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
416
+  (0.0ms) commit transaction
417
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1470
418
   (0.0ms) begin transaction
1471
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1472
-  (1.0ms) commit transaction
419
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
420
+  (0.0ms) commit transaction
1473
421
   (0.0ms) begin transaction
1474
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Delete], ["object_id", 85], ["object_type", "Message"], ["recipient_id", 169], ["recipient_type", "User"], ["sender_id", 170], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1475
-  (1.0ms) commit transaction
1476
-  (0.1ms) begin transaction
1477
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Create], ["object_id", 85], ["object_type", "Message"], ["recipient_id", 169], ["recipient_type", "User"], ["sender_id", 170], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1478
-  (5.5ms) commit transaction
1479
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 169
422
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
423
+  (0.0ms) commit transaction
1480
424
   (0.0ms) begin transaction
1481
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1482
-  (1.4ms) commit transaction
1483
-  (0.1ms) begin transaction
1484
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1485
-  (7.7ms) commit transaction
1486
-  (0.1ms) begin transaction
1487
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1488
-  (3.1ms) commit transaction
1489
-  (0.1ms) begin transaction
1490
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Send], ["object_id", 86], ["object_type", "Message"], ["recipient_id", 171], ["recipient_type", "User"], ["sender_id", 172], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1491
-  (10.8ms) commit transaction
1492
-  (0.1ms) begin transaction
1493
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Send], ["object_id", 86], ["object_type", "Message"], ["recipient_id", 172], ["recipient_type", "User"], ["sender_id", 172], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1494
-  (0.9ms) commit transaction
1495
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 171 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1496
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 172 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1497
-  (0.1ms) begin transaction
1498
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1499
-  (2.0ms) commit transaction
1500
-  (0.1ms) begin transaction
1501
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1502
-  (1.2ms) commit transaction
1503
-  (0.1ms) begin transaction
1504
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1505
-  (1.1ms) commit transaction
425
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
426
+  (0.0ms) commit transaction
427
+  (0.0ms) begin transaction
428
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
429
+  (0.0ms) commit transaction
430
+  (0.0ms) begin transaction
431
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
432
+  (0.0ms) commit transaction
433
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
434
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
435
+  (0.0ms) begin transaction
436
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
437
+  (0.0ms) commit transaction
438
+  (0.0ms) begin transaction
439
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
440
+  (0.0ms) commit transaction
441
+  (0.0ms) begin transaction
442
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
443
+  (0.0ms) commit transaction
1506
444
   (0.0ms) begin transaction
1507
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00], ["event_type", :Update], ["object_id", 174], ["object_type", "User"], ["recipient_id", 174], ["recipient_type", "User"], ["sender_id", 174], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:51:13 UTC +00:00]]
1508
-  (1.0ms) commit transaction
1509
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 174 ORDER BY "news_feed_events"."id" DESC LIMIT 1
445
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 22:29:56 UTC +00:00]]
446
+  (0.0ms) commit transaction
447
+ 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
1510
448
  Connecting to database specified by database.yml
1511
-  (0.6ms) begin transaction
1512
-  (0.0ms) rollback transaction
1513
-  (0.1ms) begin transaction
1514
- SQL (48.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:10 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:10 UTC +00:00]]
1515
-  (3.3ms) commit transaction
1516
-  (0.1ms) begin transaction
1517
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1518
-  (1.2ms) commit transaction
449
+  (37.4ms) select sqlite_version(*)
450
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
451
+  (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) 
452
+  (0.4ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
453
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
454
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
455
+  (0.0ms) PRAGMA index_list("schema_migrations")
456
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
457
+  (0.1ms) SELECT version FROM "schema_migrations"
458
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1519
459
   (0.1ms) begin transaction
1520
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1521
-  (1.4ms) commit transaction
1522
-  (0.1ms) begin transaction
1523
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Create], ["object_id", 88], ["object_type", "Message"], ["recipient_id", 175], ["recipient_type", "User"], ["sender_id", 176], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1524
-  (1.2ms) commit transaction
1525
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 175 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1526
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
460
+  (0.1ms) rollback transaction
1527
461
   (0.1ms) begin transaction
1528
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1529
-  (1.7ms) commit transaction
462
+ SQL (6.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
463
+  (0.1ms) commit transaction
1530
464
   (0.1ms) begin transaction
1531
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1532
-  (1.4ms) commit transaction
1533
-  (0.0ms) begin transaction
1534
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1535
-  (1.0ms) commit transaction
1536
-  (0.1ms) begin transaction
1537
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Delete], ["object_id", 89], ["object_type", "Message"], ["recipient_id", 177], ["recipient_type", "User"], ["sender_id", 178], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1538
-  (1.5ms) commit transaction
1539
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 177 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1540
-  (0.1ms) begin transaction
1541
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1542
-  (3.0ms) commit transaction
465
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
466
+  (0.0ms) commit transaction
1543
467
   (0.1ms) begin transaction
1544
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1545
-  (2.6ms) commit transaction
468
+ SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
469
+  (0.1ms) commit transaction
1546
470
   (0.1ms) begin transaction
1547
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1548
-  (1.2ms) commit transaction
471
+ SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
472
+  (0.1ms) commit transaction
473
+ 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
474
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1549
475
   (0.1ms) begin transaction
1550
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Delete], ["object_id", 90], ["object_type", "Message"], ["recipient_id", 179], ["recipient_type", "User"], ["sender_id", 180], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1551
-  (1.3ms) commit transaction
1552
-  (0.1ms) begin transaction
1553
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Create], ["object_id", 90], ["object_type", "Message"], ["recipient_id", 179], ["recipient_type", "User"], ["sender_id", 180], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1554
-  (1.3ms) commit transaction
1555
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 179
1556
-  (0.1ms) begin transaction
1557
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1558
-  (1.3ms) commit transaction
476
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
477
+  (0.1ms) commit transaction
478
+  (0.0ms) begin transaction
479
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
480
+  (0.0ms) commit transaction
1559
481
   (0.1ms) begin transaction
1560
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1561
-  (1.2ms) commit transaction
482
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
483
+  (0.0ms) commit transaction
1562
484
   (0.1ms) begin transaction
1563
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1564
-  (1.1ms) commit transaction
1565
-  (0.1ms) begin transaction
1566
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Send], ["object_id", 91], ["object_type", "Message"], ["recipient_id", 181], ["recipient_type", "User"], ["sender_id", 182], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1567
-  (1.1ms) commit transaction
485
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
486
+  (0.1ms) commit transaction
487
+ 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
488
+  (0.0ms) begin transaction
489
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
490
+  (0.0ms) commit transaction
491
+  (0.0ms) begin transaction
492
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
493
+  (0.0ms) commit transaction
494
+  (0.0ms) begin transaction
495
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
496
+  (0.0ms) commit transaction
497
+  (0.0ms) begin transaction
498
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
499
+  (0.1ms) commit transaction
1568
500
   (0.0ms) begin transaction
1569
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Send], ["object_id", 91], ["object_type", "Message"], ["recipient_id", 182], ["recipient_type", "User"], ["sender_id", 182], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1570
-  (1.2ms) commit transaction
1571
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 181 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1572
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 182 ORDER BY "news_feed_events"."id" DESC LIMIT 1
501
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
502
+  (0.0ms) commit transaction
503
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
504
+  (0.0ms) begin transaction
505
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
506
+  (0.0ms) commit transaction
507
+  (0.0ms) begin transaction
508
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
509
+  (0.0ms) commit transaction
510
+  (0.0ms) begin transaction
511
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
512
+  (0.0ms) commit transaction
513
+  (0.0ms) begin transaction
514
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
515
+  (0.0ms) commit transaction
516
+  (0.0ms) begin transaction
517
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
518
+  (0.0ms) commit transaction
519
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
520
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1573
521
   (0.0ms) begin transaction
1574
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1575
-  (1.3ms) commit transaction
522
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
523
+  (0.0ms) commit transaction
1576
524
   (0.0ms) begin transaction
1577
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1578
-  (1.0ms) commit transaction
525
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
526
+  (0.1ms) commit transaction
1579
527
   (0.1ms) begin transaction
1580
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1581
-  (1.4ms) commit transaction
1582
-  (0.1ms) begin transaction
1583
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00], ["event_type", :Update], ["object_id", 184], ["object_type", "User"], ["recipient_id", 184], ["recipient_type", "User"], ["sender_id", 184], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:56:11 UTC +00:00]]
1584
-  (1.2ms) commit transaction
1585
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 184 ORDER BY "news_feed_events"."id" DESC LIMIT 1
528
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
529
+  (0.0ms) commit transaction
530
+  (0.0ms) begin transaction
531
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 22:31:09 UTC +00:00]]
532
+  (0.0ms) commit transaction
533
+ 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
1586
534
  Connecting to database specified by database.yml
1587
-  (0.7ms) begin transaction
535
+  (56.0ms) select sqlite_version(*)
536
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
537
+  (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) 
538
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
539
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
540
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
541
+  (0.0ms) PRAGMA index_list("schema_migrations")
542
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
543
+  (0.1ms) SELECT version FROM "schema_migrations"
544
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
545
+  (0.2ms) begin transaction
1588
546
   (0.1ms) rollback transaction
1589
547
   (0.1ms) begin transaction
1590
- SQL (74.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00]]
1591
-  (4.5ms) commit transaction
1592
-  (0.1ms) begin transaction
1593
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00]]
1594
-  (3.4ms) commit transaction
548
+ SQL (17.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
549
+  (0.1ms) commit transaction
550
+  (0.0ms) begin transaction
551
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
552
+  (0.1ms) commit transaction
1595
553
   (0.1ms) begin transaction
1596
- SQL (7.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:28 UTC +00:00]]
1597
-  (1.7ms) commit transaction
554
+ SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
555
+  (0.1ms) commit transaction
1598
556
   (0.1ms) begin transaction
1599
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Create], ["object_id", 93], ["object_type", "Message"], ["recipient_id", 185], ["recipient_type", "User"], ["sender_id", 186], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1600
-  (6.7ms) commit transaction
1601
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 185 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1602
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
557
+ SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
558
+  (0.1ms) commit transaction
559
+ 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
560
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1603
561
   (0.1ms) begin transaction
1604
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1605
-  (3.8ms) commit transaction
1606
-  (0.1ms) begin transaction
1607
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1608
-  (2.1ms) commit transaction
562
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
563
+  (0.0ms) commit transaction
564
+  (0.0ms) begin transaction
565
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
566
+  (0.0ms) commit transaction
1609
567
   (0.0ms) begin transaction
1610
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1611
-  (2.0ms) commit transaction
568
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
569
+  (0.0ms) commit transaction
1612
570
   (0.0ms) begin transaction
1613
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Delete], ["object_id", 94], ["object_type", "Message"], ["recipient_id", 187], ["recipient_type", "User"], ["sender_id", 188], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1614
-  (3.1ms) commit transaction
1615
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 187 ORDER BY "news_feed_events"."id" DESC LIMIT 1
571
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
572
+  (0.0ms) commit transaction
573
+ 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
1616
574
   (0.1ms) begin transaction
1617
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1618
-  (3.0ms) commit transaction
575
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
576
+  (0.1ms) commit transaction
577
+  (0.0ms) begin transaction
578
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
579
+  (0.0ms) commit transaction
580
+  (0.0ms) begin transaction
581
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
582
+  (0.0ms) commit transaction
1619
583
   (0.1ms) begin transaction
1620
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1621
-  (2.3ms) commit transaction
584
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
585
+  (0.0ms) commit transaction
586
+  (0.0ms) begin transaction
587
+ SQL (9.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
588
+  (0.1ms) commit transaction
589
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1622
590
   (0.1ms) begin transaction
1623
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1624
-  (2.4ms) commit transaction
591
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
592
+  (0.0ms) commit transaction
593
+  (0.0ms) begin transaction
594
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
595
+  (0.1ms) commit transaction
596
+  (0.0ms) begin transaction
597
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
598
+  (0.0ms) commit transaction
1625
599
   (0.1ms) begin transaction
1626
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Delete], ["object_id", 95], ["object_type", "Message"], ["recipient_id", 189], ["recipient_type", "User"], ["sender_id", 190], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1627
-  (4.1ms) commit transaction
1628
-  (0.1ms) begin transaction
1629
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Create], ["object_id", 95], ["object_type", "Message"], ["recipient_id", 189], ["recipient_type", "User"], ["sender_id", 190], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1630
-  (2.9ms) commit transaction
1631
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 189
1632
-  (0.1ms) begin transaction
1633
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1634
-  (2.7ms) commit transaction
600
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
601
+  (0.1ms) commit transaction
602
+  (0.0ms) begin transaction
603
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
604
+  (0.1ms) commit transaction
605
+  (0.0ms) begin transaction
606
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
607
+  (0.0ms) commit transaction
608
+  (0.0ms) begin transaction
609
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 22:33:06 UTC +00:00]]
610
+  (0.1ms) commit transaction
611
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
612
+ Connecting to database specified by database.yml
613
+ Connecting to database specified by database.yml
614
+  (34.0ms) select sqlite_version(*)
615
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
616
+  (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) 
617
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
618
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
619
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
620
+  (0.0ms) PRAGMA index_list("schema_migrations")
621
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
622
+  (0.0ms) SELECT version FROM "schema_migrations"
623
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1635
624
   (0.1ms) begin transaction
1636
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1637
-  (2.6ms) commit transaction
1638
-  (0.1ms) begin transaction
1639
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1640
-  (3.4ms) commit transaction
625
+  (0.1ms) rollback transaction
1641
626
   (0.1ms) begin transaction
1642
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Send], ["object_id", 96], ["object_type", "Message"], ["recipient_id", 191], ["recipient_type", "User"], ["sender_id", 192], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1643
-  (4.3ms) commit transaction
1644
-  (0.1ms) begin transaction
1645
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Send], ["object_id", 96], ["object_type", "Message"], ["recipient_id", 192], ["recipient_type", "User"], ["sender_id", 192], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1646
-  (3.2ms) commit transaction
1647
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 191 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1648
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 192 ORDER BY "news_feed_events"."id" DESC LIMIT 1
627
+ SQL (5.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
628
+  (0.1ms) commit transaction
629
+  (0.0ms) begin transaction
630
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
631
+  (0.0ms) commit transaction
1649
632
   (0.1ms) begin transaction
1650
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1651
-  (3.9ms) commit transaction
633
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
634
+  (0.0ms) commit transaction
1652
635
   (0.1ms) begin transaction
1653
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1654
-  (2.7ms) commit transaction
636
+ SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
637
+  (0.0ms) commit transaction
638
+ 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
639
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1655
640
   (0.1ms) begin transaction
1656
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1657
-  (2.2ms) commit transaction
641
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
642
+  (0.1ms) commit transaction
1658
643
   (0.1ms) begin transaction
1659
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00], ["event_type", :Update], ["object_id", 194], ["object_type", "User"], ["recipient_id", 194], ["recipient_type", "User"], ["sender_id", 194], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:56:29 UTC +00:00]]
1660
-  (2.7ms) commit transaction
1661
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 194 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1662
- Connecting to database specified by database.yml
1663
-  (0.9ms) begin transaction
1664
-  (0.1ms) rollback transaction
644
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
645
+  (0.0ms) commit transaction
1665
646
   (0.1ms) begin transaction
1666
- SQL (38.0ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1667
-  (2.5ms) commit transaction
647
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
648
+  (0.1ms) commit transaction
1668
649
   (0.1ms) begin transaction
1669
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1670
-  (1.2ms) commit transaction
1671
-  (0.1ms) begin transaction
1672
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1673
-  (1.1ms) commit transaction
650
+ SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
651
+  (0.1ms) commit transaction
652
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1674
653
   (0.1ms) begin transaction
1675
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Create], ["object_id", 98], ["object_type", "Message"], ["recipient_id", 195], ["recipient_type", "User"], ["sender_id", 196], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1676
-  (1.2ms) commit transaction
1677
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 195 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1678
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
654
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
655
+  (0.0ms) commit transaction
1679
656
   (0.0ms) begin transaction
1680
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1681
-  (1.6ms) commit transaction
1682
-  (0.1ms) begin transaction
1683
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1684
-  (1.2ms) commit transaction
1685
-  (0.1ms) begin transaction
1686
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1687
-  (1.3ms) commit transaction
1688
-  (0.1ms) begin transaction
1689
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Delete], ["object_id", 99], ["object_type", "Message"], ["recipient_id", 197], ["recipient_type", "User"], ["sender_id", 198], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1690
-  (1.8ms) commit transaction
1691
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 197 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1692
-  (0.1ms) begin transaction
1693
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1694
-  (1.2ms) commit transaction
1695
-  (0.1ms) begin transaction
1696
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1697
-  (1.4ms) commit transaction
657
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
658
+  (0.0ms) commit transaction
1698
659
   (0.0ms) begin transaction
1699
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1700
-  (1.2ms) commit transaction
1701
-  (0.1ms) begin transaction
1702
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Delete], ["object_id", 100], ["object_type", "Message"], ["recipient_id", 199], ["recipient_type", "User"], ["sender_id", 200], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1703
-  (1.2ms) commit transaction
660
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
661
+  (0.1ms) commit transaction
662
+  (0.0ms) begin transaction
663
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
664
+  (0.1ms) commit transaction
1704
665
   (0.1ms) begin transaction
1705
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Create], ["object_id", 100], ["object_type", "Message"], ["recipient_id", 199], ["recipient_type", "User"], ["sender_id", 200], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1706
-  (1.0ms) commit transaction
1707
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 199
666
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
667
+  (0.1ms) commit transaction
668
+  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1708
669
   (0.1ms) begin transaction
1709
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1710
-  (1.2ms) commit transaction
670
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
671
+  (0.0ms) commit transaction
1711
672
   (0.0ms) begin transaction
1712
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1713
-  (2.3ms) commit transaction
1714
-  (0.1ms) begin transaction
1715
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1716
-  (2.8ms) commit transaction
1717
-  (0.1ms) begin transaction
1718
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Send], ["object_id", 101], ["object_type", "Message"], ["recipient_id", 201], ["recipient_type", "User"], ["sender_id", 202], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1719
-  (4.2ms) commit transaction
673
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
674
+  (0.0ms) commit transaction
1720
675
   (0.0ms) begin transaction
1721
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Send], ["object_id", 101], ["object_type", "Message"], ["recipient_id", 202], ["recipient_type", "User"], ["sender_id", 202], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1722
-  (3.3ms) commit transaction
1723
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 201 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1724
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 202 ORDER BY "news_feed_events"."id" DESC LIMIT 1
676
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
677
+  (0.0ms) commit transaction
1725
678
   (0.1ms) begin transaction
1726
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1727
-  (2.5ms) commit transaction
679
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
680
+  (0.1ms) commit transaction
1728
681
   (0.0ms) begin transaction
1729
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1730
-  (2.2ms) commit transaction
682
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
683
+  (0.0ms) commit transaction
1731
684
   (0.1ms) begin transaction
1732
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1733
-  (2.3ms) commit transaction
1734
-  (0.1ms) begin transaction
1735
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00], ["event_type", :Update], ["object_id", 204], ["object_type", "User"], ["recipient_id", 204], ["recipient_type", "User"], ["sender_id", 204], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:58:14 UTC +00:00]]
1736
-  (3.2ms) commit transaction
1737
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 204 ORDER BY "news_feed_events"."id" DESC LIMIT 1
685
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
686
+  (0.1ms) commit transaction
687
+  (0.0ms) begin transaction
688
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 22:54:04 UTC +00:00]]
689
+  (0.1ms) commit transaction
690
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1738
691
  Connecting to database specified by database.yml
1739
-  (0.8ms) begin transaction
692
+  (39.9ms) select sqlite_version(*)
693
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
694
+  (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) 
695
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
696
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
697
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
698
+  (0.0ms) PRAGMA index_list("schema_migrations")
699
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
700
+  (0.1ms) SELECT version FROM "schema_migrations"
701
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
702
+  (0.1ms) begin transaction
1740
703
   (0.1ms) rollback transaction
1741
704
   (0.1ms) begin transaction
1742
- SQL (59.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1743
-  (3.2ms) commit transaction
1744
-  (0.1ms) begin transaction
1745
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1746
-  (1.1ms) commit transaction
705
+ SQL (4.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
706
+  (0.1ms) commit transaction
707
+  (0.0ms) begin transaction
708
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
709
+  (0.0ms) commit transaction
1747
710
   (0.1ms) begin transaction
1748
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1749
-  (1.5ms) commit transaction
711
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
712
+  (0.1ms) commit transaction
1750
713
   (0.1ms) begin transaction
1751
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Create], ["object_id", 103], ["object_type", "Message"], ["recipient_id", 205], ["recipient_type", "User"], ["sender_id", 206], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1752
-  (1.5ms) commit transaction
1753
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 205 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1754
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
714
+ SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
715
+  (0.1ms) commit transaction
716
+ 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
717
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1755
718
   (0.1ms) begin transaction
1756
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1757
-  (1.1ms) commit transaction
719
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
720
+  (0.1ms) commit transaction
1758
721
   (0.0ms) begin transaction
1759
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1760
-  (1.1ms) commit transaction
722
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
723
+  (0.0ms) commit transaction
1761
724
   (0.1ms) begin transaction
1762
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1763
-  (1.3ms) commit transaction
1764
-  (0.1ms) begin transaction
1765
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Delete], ["object_id", 104], ["object_type", "Message"], ["recipient_id", 207], ["recipient_type", "User"], ["sender_id", 208], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1766
-  (1.2ms) commit transaction
1767
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 207 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1768
-  (0.1ms) begin transaction
1769
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1770
-  (1.2ms) commit transaction
1771
-  (0.0ms) begin transaction
1772
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1773
-  (1.1ms) commit transaction
725
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
726
+  (0.0ms) commit transaction
1774
727
   (0.0ms) begin transaction
1775
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1776
-  (0.9ms) commit transaction
1777
-  (0.0ms) begin transaction
1778
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Delete], ["object_id", 105], ["object_type", "Message"], ["recipient_id", 209], ["recipient_type", "User"], ["sender_id", 210], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1779
-  (0.9ms) commit transaction
1780
-  (0.1ms) begin transaction
1781
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Create], ["object_id", 105], ["object_type", "Message"], ["recipient_id", 209], ["recipient_type", "User"], ["sender_id", 210], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1782
-  (0.9ms) commit transaction
1783
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 209
728
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
729
+  (0.0ms) commit transaction
730
+ 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
1784
731
   (0.0ms) begin transaction
1785
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1786
-  (0.9ms) commit transaction
732
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
733
+  (0.0ms) commit transaction
1787
734
   (0.0ms) begin transaction
1788
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1789
-  (0.9ms) commit transaction
735
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
736
+  (0.0ms) commit transaction
1790
737
   (0.0ms) begin transaction
1791
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1792
-  (0.9ms) commit transaction
738
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
739
+  (0.0ms) commit transaction
1793
740
   (0.0ms) begin transaction
1794
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Send], ["object_id", 106], ["object_type", "Message"], ["recipient_id", 211], ["recipient_type", "User"], ["sender_id", 212], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1795
-  (0.9ms) commit transaction
741
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
742
+  (0.0ms) commit transaction
1796
743
   (0.0ms) begin transaction
1797
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Send], ["object_id", 106], ["object_type", "Message"], ["recipient_id", 212], ["recipient_type", "User"], ["sender_id", 212], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1798
-  (1.0ms) commit transaction
1799
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 211 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1800
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 212 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1801
-  (0.1ms) begin transaction
1802
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1803
-  (1.1ms) commit transaction
744
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
745
+  (0.0ms) commit transaction
746
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1804
747
   (0.0ms) begin transaction
1805
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1806
-  (0.9ms) commit transaction
748
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
749
+  (0.0ms) commit transaction
750
+  (0.0ms) begin transaction
751
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
752
+  (0.0ms) commit transaction
753
+  (0.1ms) begin transaction
754
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
755
+  (0.0ms) commit transaction
1807
756
   (0.0ms) begin transaction
1808
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1809
-  (0.8ms) commit transaction
757
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
758
+  (0.0ms) commit transaction
1810
759
   (0.0ms) begin transaction
1811
- SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00], ["event_type", :Update], ["object_id", 214], ["object_type", "User"], ["recipient_id", 214], ["recipient_type", "User"], ["sender_id", 214], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 21:59:27 UTC +00:00]]
1812
-  (0.9ms) commit transaction
1813
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 214 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1814
- Connecting to database specified by database.yml
1815
- Connecting to database specified by database.yml
760
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
761
+  (0.0ms) commit transaction
762
+  (0.0ms) begin transaction
763
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
764
+  (0.0ms) commit transaction
765
+  (0.0ms) begin transaction
766
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:03:06 UTC +00:00]]
767
+  (0.0ms) commit transaction
768
+ 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
1816
769
  Connecting to database specified by database.yml
1817
-  (0.9ms) begin transaction
770
+  (1.8ms) select sqlite_version(*)
771
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
772
+  (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) 
773
+  (0.3ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
774
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
775
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
776
+  (0.0ms) PRAGMA index_list("schema_migrations")
777
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
778
+  (0.1ms) SELECT version FROM "schema_migrations"
779
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
780
+  (0.1ms) begin transaction
1818
781
   (0.1ms) rollback transaction
1819
782
   (0.1ms) begin transaction
1820
- SQL (58.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1821
-  (5.7ms) commit transaction
783
+ SQL (4.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
784
+  (0.1ms) commit transaction
785
+  (0.0ms) begin transaction
786
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
787
+  (0.0ms) commit transaction
788
+  (0.0ms) begin transaction
789
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
790
+  (0.0ms) commit transaction
1822
791
   (0.1ms) begin transaction
1823
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1824
-  (1.9ms) commit transaction
1825
-  (0.1ms) begin transaction
1826
- SQL (0.7ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1827
-  (3.9ms) commit transaction
1828
-  (0.2ms) begin transaction
1829
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Create], ["object_id", 108], ["object_type", "Message"], ["recipient_id", 215], ["recipient_type", "User"], ["sender_id", 216], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1830
-  (1.2ms) commit transaction
1831
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 215 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1832
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
792
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
793
+  (0.0ms) commit transaction
794
+ NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 1 ORDER BY "news_feed_events"."id" DESC LIMIT 1
795
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1833
796
   (0.1ms) begin transaction
1834
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1835
-  (1.1ms) commit transaction
797
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
798
+  (0.0ms) commit transaction
1836
799
   (0.0ms) begin transaction
1837
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1838
-  (1.0ms) commit transaction
1839
-  (0.1ms) begin transaction
1840
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1841
-  (1.1ms) commit transaction
800
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
801
+  (0.0ms) commit transaction
802
+  (0.0ms) begin transaction
803
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
804
+  (0.0ms) commit transaction
1842
805
   (0.0ms) begin transaction
1843
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Delete], ["object_id", 109], ["object_type", "Message"], ["recipient_id", 217], ["recipient_type", "User"], ["sender_id", 218], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1844
-  (1.8ms) commit transaction
1845
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 217 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1846
-  (0.1ms) begin transaction
1847
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1848
-  (1.4ms) commit transaction
1849
-  (0.1ms) begin transaction
1850
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1851
-  (0.9ms) commit transaction
806
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
807
+  (0.0ms) commit transaction
808
+ 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
809
+  (0.0ms) begin transaction
810
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
811
+  (0.0ms) commit transaction
812
+  (0.0ms) begin transaction
813
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
814
+  (0.0ms) commit transaction
1852
815
   (0.0ms) begin transaction
1853
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1854
-  (0.9ms) commit transaction
816
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
817
+  (0.0ms) commit transaction
1855
818
   (0.0ms) begin transaction
1856
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Delete], ["object_id", 110], ["object_type", "Message"], ["recipient_id", 219], ["recipient_type", "User"], ["sender_id", 220], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1857
-  (0.9ms) commit transaction
819
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
820
+  (0.0ms) commit transaction
1858
821
   (0.0ms) begin transaction
1859
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Create], ["object_id", 110], ["object_type", "Message"], ["recipient_id", 219], ["recipient_type", "User"], ["sender_id", 220], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1860
-  (1.0ms) commit transaction
1861
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 219
822
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
823
+  (0.0ms) commit transaction
824
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1862
825
   (0.0ms) begin transaction
1863
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1864
-  (1.0ms) commit transaction
826
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
827
+  (0.0ms) commit transaction
1865
828
   (0.0ms) begin transaction
1866
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1867
-  (0.8ms) commit transaction
829
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
830
+  (0.0ms) commit transaction
1868
831
   (0.0ms) begin transaction
1869
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1870
-  (8.1ms) commit transaction
832
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
833
+  (0.0ms) commit transaction
1871
834
   (0.0ms) begin transaction
1872
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Send], ["object_id", 111], ["object_type", "Message"], ["recipient_id", 221], ["recipient_type", "User"], ["sender_id", 222], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1873
-  (1.7ms) commit transaction
835
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
836
+  (0.0ms) commit transaction
1874
837
   (0.0ms) begin transaction
1875
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Send], ["object_id", 111], ["object_type", "Message"], ["recipient_id", 222], ["recipient_type", "User"], ["sender_id", 222], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1876
-  (0.9ms) commit transaction
1877
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 221 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1878
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 222 ORDER BY "news_feed_events"."id" DESC LIMIT 1
838
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
839
+  (0.0ms) commit transaction
1879
840
   (0.0ms) begin transaction
1880
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1881
-  (1.2ms) commit transaction
841
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
842
+  (0.0ms) commit transaction
1882
843
   (0.0ms) begin transaction
1883
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1884
-  (1.3ms) commit transaction
1885
-  (0.1ms) begin transaction
1886
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1887
-  (1.4ms) commit transaction
1888
-  (0.1ms) begin transaction
1889
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00], ["event_type", :Update], ["object_id", 224], ["object_type", "User"], ["recipient_id", 224], ["recipient_type", "User"], ["sender_id", 224], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:00:44 UTC +00:00]]
1890
-  (3.9ms) commit transaction
1891
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 224 ORDER BY "news_feed_events"."id" DESC LIMIT 1
844
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:14:42 UTC +00:00]]
845
+  (0.0ms) commit transaction
846
+ 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
1892
847
  Connecting to database specified by database.yml
1893
-  (0.6ms) begin transaction
1894
-  (0.1ms) rollback transaction
1895
-  (0.1ms) begin transaction
1896
- SQL (32.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00]]
1897
-  (131.3ms) commit transaction
1898
-  (0.1ms) begin transaction
1899
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00]]
1900
-  (48.0ms) commit transaction
1901
-  (0.1ms) begin transaction
1902
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00]]
1903
-  (275.9ms) commit transaction
1904
-  (0.2ms) begin transaction
1905
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00], ["event_type", :Create], ["object_id", 113], ["object_type", "Message"], ["recipient_id", 225], ["recipient_type", "User"], ["sender_id", 226], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:25 UTC +00:00]]
1906
-  (100.1ms) commit transaction
1907
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 225 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1908
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1909
-  (0.1ms) begin transaction
1910
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1911
-  (39.8ms) commit transaction
1912
-  (0.1ms) begin transaction
1913
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1914
-  (7.0ms) commit transaction
1915
-  (0.1ms) begin transaction
1916
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1917
-  (298.3ms) commit transaction
1918
-  (0.1ms) begin transaction
1919
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["event_type", :Delete], ["object_id", 114], ["object_type", "Message"], ["recipient_id", 227], ["recipient_type", "User"], ["sender_id", 228], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1920
-  (13.3ms) commit transaction
1921
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 227 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1922
-  (0.1ms) begin transaction
1923
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1924
-  (23.7ms) commit transaction
848
+  (1.5ms) select sqlite_version(*)
849
+  (0.3ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
850
+  (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) 
851
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
852
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
853
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
854
+  (0.0ms) PRAGMA index_list("schema_migrations")
855
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
856
+  (0.0ms) SELECT version FROM "schema_migrations"
857
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1925
858
   (0.1ms) begin transaction
1926
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1927
-  (189.1ms) commit transaction
1928
-  (0.1ms) begin transaction
1929
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:26 UTC +00:00]]
1930
-  (125.5ms) commit transaction
859
+  (0.1ms) rollback transaction
1931
860
   (0.1ms) begin transaction
1932
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["event_type", :Delete], ["object_id", 115], ["object_type", "Message"], ["recipient_id", 229], ["recipient_type", "User"], ["sender_id", 230], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1933
-  (118.3ms) commit transaction
1934
-  (0.1ms) begin transaction
1935
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["event_type", :Create], ["object_id", 115], ["object_type", "Message"], ["recipient_id", 229], ["recipient_type", "User"], ["sender_id", 230], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1936
-  (111.2ms) commit transaction
1937
-  (0.4ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 229
861
+ SQL (4.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
862
+  (0.1ms) commit transaction
863
+  (0.0ms) begin transaction
864
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
865
+  (0.0ms) commit transaction
866
+  (0.0ms) begin transaction
867
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
868
+  (0.0ms) commit transaction
1938
869
   (0.1ms) begin transaction
1939
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1940
-  (90.1ms) commit transaction
870
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
871
+  (0.1ms) commit transaction
872
+ 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
873
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
874
+  (0.0ms) begin transaction
875
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
876
+  (0.0ms) commit transaction
877
+  (0.0ms) begin transaction
878
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
879
+  (0.0ms) commit transaction
880
+  (0.0ms) begin transaction
881
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
882
+  (0.0ms) commit transaction
883
+  (0.0ms) begin transaction
884
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
885
+  (0.0ms) commit transaction
886
+ 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
887
+  (0.0ms) begin transaction
888
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
889
+  (0.1ms) commit transaction
1941
890
   (0.1ms) begin transaction
1942
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1943
-  (182.5ms) commit transaction
891
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
892
+  (0.1ms) commit transaction
893
+  (0.0ms) begin transaction
894
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
895
+  (0.1ms) commit transaction
896
+  (0.0ms) begin transaction
897
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
898
+  (0.1ms) commit transaction
1944
899
   (0.1ms) begin transaction
1945
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1946
-  (168.8ms) commit transaction
1947
-  (0.1ms) begin transaction
1948
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00], ["event_type", :Send], ["object_id", 116], ["object_type", "Message"], ["recipient_id", 231], ["recipient_type", "User"], ["sender_id", 232], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:27 UTC +00:00]]
1949
-  (294.0ms) commit transaction
900
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
901
+  (0.0ms) commit transaction
902
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
1950
903
   (0.1ms) begin transaction
1951
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00], ["event_type", :Send], ["object_id", 116], ["object_type", "Message"], ["recipient_id", 232], ["recipient_type", "User"], ["sender_id", 232], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00]]
1952
-  (2.8ms) commit transaction
1953
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 231 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1954
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 232 ORDER BY "news_feed_events"."id" DESC LIMIT 1
904
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
905
+  (0.0ms) commit transaction
906
+  (0.0ms) begin transaction
907
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
908
+  (0.0ms) commit transaction
909
+  (0.0ms) begin transaction
910
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
911
+  (0.0ms) commit transaction
1955
912
   (0.0ms) begin transaction
1956
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00]]
1957
-  (29.2ms) commit transaction
913
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
914
+  (0.1ms) commit transaction
1958
915
   (0.1ms) begin transaction
1959
- SQL (28.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00]]
1960
-  (118.7ms) commit transaction
916
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
917
+  (0.0ms) commit transaction
918
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
919
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1961
920
   (0.1ms) begin transaction
1962
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00]]
1963
-  (246.2ms) commit transaction
1964
-  (0.1ms) begin transaction
1965
- SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00], ["event_type", :Update], ["object_id", 234], ["object_type", "User"], ["recipient_id", 234], ["recipient_type", "User"], ["sender_id", 234], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:01:28 UTC +00:00]]
1966
-  (232.0ms) commit transaction
1967
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 234 ORDER BY "news_feed_events"."id" DESC LIMIT 1
921
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
922
+  (0.0ms) commit transaction
923
+  (0.0ms) begin transaction
924
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
925
+  (0.0ms) commit transaction
926
+  (0.0ms) begin transaction
927
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
928
+  (0.0ms) commit transaction
929
+  (0.0ms) begin transaction
930
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:15:26 UTC +00:00]]
931
+  (0.0ms) commit transaction
932
+ 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
1968
933
  Connecting to database specified by database.yml
1969
-  (0.8ms) begin transaction
1970
-  (0.1ms) rollback transaction
1971
-  (0.1ms) begin transaction
1972
- SQL (32.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1973
-  (6.4ms) commit transaction
1974
-  (0.1ms) begin transaction
1975
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1976
-  (1.0ms) commit transaction
934
+  (1.7ms) select sqlite_version(*)
935
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
936
+  (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) 
937
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "object_id" integer, "object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
938
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
939
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
940
+  (0.0ms) PRAGMA index_list("schema_migrations")
941
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
942
+  (0.0ms) SELECT version FROM "schema_migrations"
943
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
944
+  (0.2ms) begin transaction
945
+ SQL (38.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
946
+  (0.1ms) commit transaction
947
+  (0.0ms) begin transaction
948
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
949
+  (0.0ms) commit transaction
1977
950
   (0.1ms) begin transaction
1978
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1979
-  (1.2ms) commit transaction
951
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
952
+  (0.0ms) commit transaction
1980
953
   (0.1ms) begin transaction
1981
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Create], ["object_id", 118], ["object_type", "Message"], ["recipient_id", 235], ["recipient_type", "User"], ["sender_id", 236], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1982
-  (1.1ms) commit transaction
1983
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 235 ORDER BY "news_feed_events"."id" DESC LIMIT 1
954
+ SQL (0.6ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Create], ["object_id", 1], ["object_type", "Message"], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
955
+  (0.1ms) commit transaction
956
+ 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
1984
957
  NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1985
-  (0.0ms) begin transaction
1986
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1987
-  (1.3ms) commit transaction
958
+  (0.1ms) begin transaction
959
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
960
+  (0.1ms) commit transaction
1988
961
   (0.0ms) begin transaction
1989
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1990
-  (1.2ms) commit transaction
962
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
963
+  (0.0ms) commit transaction
1991
964
   (0.0ms) begin transaction
1992
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1993
-  (1.4ms) commit transaction
1994
-  (0.0ms) begin transaction
1995
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Delete], ["object_id", 119], ["object_type", "Message"], ["recipient_id", 237], ["recipient_type", "User"], ["sender_id", 238], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
1996
-  (1.0ms) commit transaction
1997
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 237 ORDER BY "news_feed_events"."id" DESC LIMIT 1
965
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
966
+  (0.0ms) commit transaction
1998
967
   (0.1ms) begin transaction
1999
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2000
-  (1.0ms) commit transaction
2001
-  (0.0ms) begin transaction
2002
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2003
-  (1.8ms) commit transaction
968
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Delete], ["object_id", 2], ["object_type", "Message"], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
969
+  (0.0ms) commit transaction
970
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2004
971
   (0.0ms) begin transaction
2005
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2006
-  (1.0ms) commit transaction
972
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
973
+  (0.0ms) commit transaction
2007
974
   (0.0ms) begin transaction
2008
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Delete], ["object_id", 120], ["object_type", "Message"], ["recipient_id", 239], ["recipient_type", "User"], ["sender_id", 240], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2009
-  (1.0ms) commit transaction
975
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
976
+  (0.0ms) commit transaction
2010
977
   (0.0ms) begin transaction
2011
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Create], ["object_id", 120], ["object_type", "Message"], ["recipient_id", 239], ["recipient_type", "User"], ["sender_id", 240], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2012
-  (0.9ms) commit transaction
2013
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 239
2014
-  (0.0ms) begin transaction
2015
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2016
-  (0.9ms) commit transaction
978
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
979
+  (0.1ms) commit transaction
2017
980
   (0.0ms) begin transaction
2018
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2019
-  (1.0ms) commit transaction
981
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Delete], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
982
+  (0.0ms) commit transaction
2020
983
   (0.0ms) begin transaction
2021
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2022
-  (1.1ms) commit transaction
2023
-  (0.0ms) begin transaction
2024
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Send], ["object_id", 121], ["object_type", "Message"], ["recipient_id", 241], ["recipient_type", "User"], ["sender_id", 242], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2025
-  (1.1ms) commit transaction
984
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Create], ["object_id", 3], ["object_type", "Message"], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
985
+  (0.0ms) commit transaction
986
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2026
987
   (0.0ms) begin transaction
2027
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Send], ["object_id", 121], ["object_type", "Message"], ["recipient_id", 242], ["recipient_type", "User"], ["sender_id", 242], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2028
-  (1.0ms) commit transaction
2029
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 241 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2030
- NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 242 ORDER BY "news_feed_events"."id" DESC LIMIT 1
988
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
989
+  (0.0ms) commit transaction
2031
990
   (0.0ms) begin transaction
2032
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2033
-  (1.1ms) commit transaction
991
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
992
+  (0.0ms) commit transaction
2034
993
   (0.0ms) begin transaction
2035
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2036
-  (1.1ms) commit transaction
994
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
995
+  (0.0ms) commit transaction
2037
996
   (0.0ms) begin transaction
2038
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2039
-  (1.1ms) commit transaction
997
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
998
+  (0.0ms) commit transaction
2040
999
   (0.0ms) begin transaction
2041
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00], ["event_type", :Update], ["object_id", 244], ["object_type", "User"], ["recipient_id", 244], ["recipient_type", "User"], ["sender_id", 244], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:02:56 UTC +00:00]]
2042
-  (1.2ms) commit transaction
2043
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 244 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2044
- Connecting to database specified by database.yml
2045
-  (0.6ms) begin transaction
2046
-  (0.1ms) rollback transaction
2047
-  (0.1ms) begin transaction
2048
- SQL (42.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2049
-  (3.9ms) commit transaction
2050
-  (0.1ms) begin transaction
2051
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2052
-  (1.3ms) commit transaction
2053
-  (0.1ms) begin transaction
2054
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2055
-  (1.6ms) commit transaction
2056
-  (0.1ms) begin transaction
2057
- SQL (0.8ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Create], ["object_id", 123], ["object_type", "Message"], ["recipient_id", 245], ["recipient_type", "User"], ["sender_id", 246], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2058
-  (1.8ms) commit transaction
2059
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 245 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2060
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1000
+ SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Send], ["object_id", 4], ["object_type", "Message"], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
1001
+  (0.0ms) commit transaction
1002
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1003
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2061
1004
   (0.1ms) begin transaction
2062
- SQL (0.6ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2063
-  (4.2ms) commit transaction
1005
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
1006
+  (0.1ms) commit transaction
2064
1007
   (0.1ms) begin transaction
2065
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2066
-  (2.9ms) commit transaction
1008
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
1009
+  (0.1ms) commit transaction
2067
1010
   (0.0ms) begin transaction
2068
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2069
-  (2.5ms) commit transaction
2070
-  (0.1ms) begin transaction
2071
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Delete], ["object_id", 124], ["object_type", "Message"], ["recipient_id", 247], ["recipient_type", "User"], ["sender_id", 248], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2072
-  (2.7ms) commit transaction
2073
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 247 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1011
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
1012
+  (0.1ms) commit transaction
2074
1013
   (0.1ms) begin transaction
2075
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2076
-  (2.8ms) commit transaction
1014
+ SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00], ["event_type", :Update], ["object_id", 10], ["object_type", "User"], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:46:16 UTC +00:00]]
1015
+  (0.1ms) commit transaction
1016
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 10 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1017
+ Connecting to database specified by database.yml
1018
+  (2.4ms) select sqlite_version(*)
1019
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1020
+  (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) 
1021
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1022
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1023
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1024
+  (0.0ms) PRAGMA index_list("schema_migrations")
1025
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1026
+  (0.1ms) SELECT version FROM "schema_migrations"
1027
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2077
1028
   (0.1ms) begin transaction
2078
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2079
-  (3.2ms) commit transaction
2080
-  (0.1ms) begin transaction
2081
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2082
-  (2.5ms) commit transaction
1029
+ SQL (30.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1030
+  (0.1ms) commit transaction
1031
+  (0.0ms) begin transaction
1032
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1033
+  (0.0ms) commit transaction
2083
1034
   (0.1ms) begin transaction
2084
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Delete], ["object_id", 125], ["object_type", "Message"], ["recipient_id", 249], ["recipient_type", "User"], ["sender_id", 250], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2085
-  (3.4ms) commit transaction
2086
-  (0.1ms) begin transaction
2087
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Create], ["object_id", 125], ["object_type", "Message"], ["recipient_id", 249], ["recipient_type", "User"], ["sender_id", 250], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2088
-  (3.0ms) commit transaction
2089
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 249
1035
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1036
+  (0.1ms) commit transaction
2090
1037
   (0.0ms) begin transaction
2091
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2092
-  (2.6ms) commit transaction
1038
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1039
+  (0.0ms) commit transaction
2093
1040
   (0.0ms) begin transaction
2094
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2095
-  (2.1ms) commit transaction
2096
-  (0.1ms) begin transaction
2097
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2098
-  (2.3ms) commit transaction
1041
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1042
+  (0.0ms) commit transaction
1043
+  (0.0ms) begin transaction
1044
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1045
+  (0.0ms) commit transaction
2099
1046
   (0.0ms) begin transaction
2100
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Send], ["object_id", 126], ["object_type", "Message"], ["recipient_id", 251], ["recipient_type", "User"], ["sender_id", 252], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2101
-  (3.2ms) commit transaction
2102
-  (0.1ms) begin transaction
2103
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Send], ["object_id", 126], ["object_type", "Message"], ["recipient_id", 252], ["recipient_type", "User"], ["sender_id", 252], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2104
-  (2.9ms) commit transaction
2105
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 251 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2106
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 252 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2107
-  (0.1ms) begin transaction
2108
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2109
-  (2.5ms) commit transaction
1047
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1048
+  (0.1ms) commit transaction
2110
1049
   (0.0ms) begin transaction
2111
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2112
-  (2.0ms) commit transaction
1050
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1051
+  (0.0ms) commit transaction
2113
1052
   (0.0ms) begin transaction
2114
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2115
-  (2.0ms) commit transaction
1053
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1054
+  (0.0ms) commit transaction
2116
1055
   (0.0ms) begin transaction
2117
- SQL (0.5ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00], ["event_type", :Update], ["object_id", 254], ["object_type", "User"], ["recipient_id", 254], ["recipient_type", "User"], ["sender_id", 254], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:03:58 UTC +00:00]]
2118
-  (3.7ms) commit transaction
2119
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 254 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1056
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1057
+  (0.0ms) commit transaction
1058
+  (0.0ms) begin transaction
1059
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1060
+  (0.0ms) commit transaction
1061
+  (0.0ms) begin transaction
1062
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1063
+  (0.0ms) commit transaction
1064
+  (0.1ms) begin transaction
1065
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1066
+  (0.0ms) commit transaction
1067
+  (0.0ms) begin transaction
1068
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1069
+  (0.0ms) commit transaction
1070
+  (0.0ms) begin transaction
1071
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:49:34 UTC +00:00]]
1072
+  (0.0ms) commit transaction
2120
1073
  Connecting to database specified by database.yml
2121
-  (0.6ms) begin transaction
2122
-  (0.1ms) rollback transaction
1074
+  (37.9ms) select sqlite_version(*)
1075
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1076
+  (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) 
1077
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1078
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1079
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1080
+  (0.1ms) PRAGMA index_list("schema_migrations")
1081
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1082
+  (0.1ms) SELECT version FROM "schema_migrations"
1083
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2123
1084
   (0.1ms) begin transaction
2124
- SQL (56.7ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2125
-  (9.0ms) commit transaction
1085
+ SQL (45.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1086
+  (0.1ms) commit transaction
2126
1087
   (0.1ms) begin transaction
2127
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2128
-  (4.2ms) commit transaction
1088
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1089
+  (0.1ms) commit transaction
2129
1090
   (0.1ms) begin transaction
2130
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2131
-  (1.5ms) commit transaction
1091
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1092
+  (0.0ms) commit transaction
2132
1093
   (0.1ms) begin transaction
2133
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Create], ["object_id", 128], ["object_type", "Message"], ["recipient_id", 255], ["recipient_type", "User"], ["sender_id", 256], ["sender_type", 0], ["text", "translation missing: en.news_feeds.create_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2134
-  (5.9ms) commit transaction
2135
- NewsFeedEvent Load (0.4ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 255 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2136
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1094
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1095
+  (0.0ms) commit transaction
1096
+ 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
1097
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2137
1098
   (0.1ms) begin transaction
2138
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2139
-  (5.6ms) commit transaction
2140
-  (0.0ms) begin transaction
2141
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2142
-  (1.6ms) commit transaction
2143
-  (0.0ms) begin transaction
2144
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2145
-  (1.1ms) commit transaction
2146
-  (0.0ms) begin transaction
2147
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Delete], ["object_id", 129], ["object_type", "Message"], ["recipient_id", 257], ["recipient_type", "User"], ["sender_id", 258], ["sender_type", 0], ["text", "translation missing: en.news_feeds.delete_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2148
-  (1.0ms) commit transaction
2149
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 257 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1099
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1100
+  (0.1ms) commit transaction
2150
1101
   (0.0ms) begin transaction
2151
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2152
-  (9.1ms) commit transaction
1102
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1103
+  (0.1ms) commit transaction
2153
1104
   (0.1ms) begin transaction
2154
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2155
-  (1.1ms) commit transaction
2156
-  (0.0ms) begin transaction
2157
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2158
-  (1.2ms) commit transaction
1105
+ SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1106
+  (0.0ms) commit transaction
1107
+  (0.1ms) begin transaction
1108
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1109
+  (0.1ms) commit transaction
1110
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 3 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1111
+  (0.1ms) begin transaction
1112
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1113
+  (0.1ms) commit transaction
2159
1114
   (0.0ms) begin transaction
2160
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Delete], ["object_id", 130], ["object_type", "Message"], ["recipient_id", 259], ["recipient_type", "User"], ["sender_id", 260], ["sender_type", 0], ["text", "translation missing: en.news_feeds.delete_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2161
-  (1.1ms) commit transaction
2162
-  (0.0ms) begin transaction
2163
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Create], ["object_id", 130], ["object_type", "Message"], ["recipient_id", 259], ["recipient_type", "User"], ["sender_id", 260], ["sender_type", 0], ["text", "translation missing: en.news_feeds.create_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2164
-  (1.0ms) commit transaction
2165
-  (0.3ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 259
1115
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1116
+  (0.1ms) commit transaction
2166
1117
   (0.0ms) begin transaction
2167
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2168
-  (0.9ms) commit transaction
1118
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1119
+  (0.0ms) commit transaction
2169
1120
   (0.0ms) begin transaction
2170
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2171
-  (0.8ms) commit transaction
1121
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1122
+  (0.0ms) commit transaction
2172
1123
   (0.0ms) begin transaction
2173
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2174
-  (0.8ms) commit transaction
2175
-  (0.0ms) begin transaction
2176
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Send], ["object_id", 131], ["object_type", "Message"], ["recipient_id", 261], ["recipient_type", "User"], ["sender_id", 262], ["sender_type", 0], ["text", "translation missing: en.news_feeds.send_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2177
-  (1.5ms) commit transaction
1124
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1125
+  (0.0ms) commit transaction
1126
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2178
1127
   (0.0ms) begin transaction
2179
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Send], ["object_id", 131], ["object_type", "Message"], ["recipient_id", 262], ["recipient_type", "User"], ["sender_id", 262], ["sender_type", 0], ["text", "translation missing: en.news_feeds.send_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2180
-  (2.8ms) commit transaction
2181
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 261 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2182
-  (0.1ms) begin transaction
2183
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2184
-  (8.1ms) commit transaction
2185
-  (0.0ms) begin transaction
2186
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2187
-  (1.1ms) commit transaction
2188
-  (0.1ms) begin transaction
2189
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2190
-  (1.0ms) commit transaction
1128
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1129
+  (0.0ms) commit transaction
2191
1130
   (0.0ms) begin transaction
2192
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00], ["event_type", :Update], ["object_id", 264], ["object_type", "User"], ["recipient_id", 264], ["recipient_type", "User"], ["sender_id", 264], ["sender_type", 0], ["text", "translation missing: en.news_feeds.update_object"], ["updated_at", Tue, 07 Aug 2012 22:10:57 UTC +00:00]]
2193
-  (1.0ms) commit transaction
2194
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 264 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2195
- Connecting to database specified by database.yml
2196
-  (0.8ms) begin transaction
2197
-  (0.1ms) rollback transaction
2198
-  (0.1ms) begin transaction
2199
- SQL (31.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00]]
2200
-  (1.8ms) commit transaction
2201
-  (0.1ms) begin transaction
2202
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00]]
2203
-  (1.0ms) commit transaction
2204
-  (0.1ms) begin transaction
2205
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:26 UTC +00:00]]
2206
-  (3.5ms) commit transaction
1131
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1132
+  (0.0ms) commit transaction
2207
1133
   (0.1ms) begin transaction
2208
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2209
-  (3.4ms) commit transaction
2210
-  (0.0ms) begin transaction
2211
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2212
-  (1.6ms) commit transaction
2213
-  (0.0ms) begin transaction
2214
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2215
-  (1.5ms) commit transaction
1134
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1135
+  (0.0ms) commit transaction
2216
1136
   (0.0ms) begin transaction
2217
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2218
-  (5.8ms) commit transaction
1137
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1138
+  (0.0ms) commit transaction
2219
1139
   (0.0ms) begin transaction
2220
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2221
-  (9.6ms) commit transaction
1140
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1141
+  (0.0ms) commit transaction
1142
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1143
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2222
1144
   (0.1ms) begin transaction
2223
- SQL (0.4ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2224
-  (1.7ms) commit transaction
2225
-  (0.1ms) begin transaction
2226
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2227
-  (1.0ms) commit transaction
1145
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1146
+  (0.1ms) commit transaction
1147
+  (0.2ms) begin transaction
1148
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1149
+  (0.0ms) commit transaction
1150
+  (0.0ms) begin transaction
1151
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1152
+  (0.0ms) commit transaction
1153
+  (0.0ms) begin transaction
1154
+ 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", Wed, 08 Aug 2012 23:50:25 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:50:25 UTC +00:00]]
1155
+  (0.0ms) commit transaction
1156
+ 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
1157
+ Connecting to database specified by database.yml
1158
+  (34.5ms) select sqlite_version(*)
1159
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1160
+  (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) 
1161
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1162
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1163
+  (0.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1164
+  (0.0ms) PRAGMA index_list("schema_migrations")
1165
+  (0.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1166
+  (0.0ms) SELECT version FROM "schema_migrations"
1167
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
1168
+ Connecting to database specified by database.yml
1169
+  (30.8ms) select sqlite_version(*)
1170
+  (0.5ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1171
+  (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) 
1172
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1173
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1174
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1175
+  (0.0ms) PRAGMA index_list("schema_migrations")
1176
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1177
+  (0.0ms) SELECT version FROM "schema_migrations"
1178
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2228
1179
   (0.1ms) begin transaction
2229
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2230
-  (3.2ms) commit transaction
2231
-  (0.1ms) begin transaction
2232
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2233
-  (3.4ms) commit transaction
1180
+  (0.1ms) rollback transaction
2234
1181
   (0.1ms) begin transaction
2235
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2236
-  (5.2ms) commit transaction
1182
+ SQL (35.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1183
+  (0.1ms) commit transaction
2237
1184
   (0.0ms) begin transaction
2238
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2239
-  (2.1ms) commit transaction
1185
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1186
+  (0.0ms) commit transaction
2240
1187
   (0.0ms) begin transaction
2241
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:12:27 UTC +00:00]]
2242
-  (1.6ms) commit transaction
2243
- Connecting to database specified by database.yml
2244
-  (0.8ms) begin transaction
2245
-  (0.2ms) rollback transaction
2246
-  (0.1ms) begin transaction
2247
- SQL (60.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00]]
2248
-  (11.9ms) commit transaction
2249
-  (0.1ms) begin transaction
2250
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00]]
2251
-  (8.4ms) commit transaction
2252
-  (0.1ms) begin transaction
2253
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:29 UTC +00:00]]
2254
-  (6.9ms) commit transaction
1188
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1189
+  (0.0ms) commit transaction
2255
1190
   (0.1ms) begin transaction
2256
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Create], ["object_id", 138], ["object_type", "Message"], ["recipient_id", 275], ["recipient_type", "User"], ["sender_id", 276], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2257
-  (6.8ms) commit transaction
2258
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 275 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2259
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2260
-  (0.1ms) begin transaction
2261
- SQL (0.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2262
-  (1.3ms) commit transaction
1191
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1192
+  (0.0ms) commit transaction
1193
+ 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
1194
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1195
+  (0.0ms) begin transaction
1196
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1197
+  (0.0ms) commit transaction
2263
1198
   (0.0ms) begin transaction
2264
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2265
-  (0.9ms) commit transaction
1199
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1200
+  (0.0ms) commit transaction
2266
1201
   (0.0ms) begin transaction
2267
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2268
-  (1.0ms) commit transaction
2269
-  (0.1ms) begin transaction
2270
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Delete], ["object_id", 139], ["object_type", "Message"], ["recipient_id", 277], ["recipient_type", "User"], ["sender_id", 278], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2271
-  (1.0ms) commit transaction
2272
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 277 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1202
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1203
+  (0.0ms) commit transaction
2273
1204
   (0.0ms) begin transaction
2274
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2275
-  (1.0ms) commit transaction
1205
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1206
+  (0.0ms) commit transaction
1207
+ 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
1208
+  (0.0ms) begin transaction
1209
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1210
+  (0.0ms) commit transaction
2276
1211
   (0.0ms) begin transaction
2277
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2278
-  (1.2ms) commit transaction
2279
-  (0.1ms) begin transaction
2280
- SQL (0.6ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2281
-  (1.2ms) commit transaction
1212
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1213
+  (0.0ms) commit transaction
1214
+  (0.0ms) begin transaction
1215
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1216
+  (0.0ms) commit transaction
2282
1217
   (0.0ms) begin transaction
2283
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Delete], ["object_id", 140], ["object_type", "Message"], ["recipient_id", 279], ["recipient_type", "User"], ["sender_id", 280], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2284
-  (1.1ms) commit transaction
1218
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1219
+  (0.0ms) commit transaction
2285
1220
   (0.0ms) begin transaction
2286
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Create], ["object_id", 140], ["object_type", "Message"], ["recipient_id", 279], ["recipient_type", "User"], ["sender_id", 280], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2287
-  (0.9ms) commit transaction
2288
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 279
1221
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1222
+  (0.0ms) commit transaction
1223
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2289
1224
   (0.0ms) begin transaction
2290
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2291
-  (0.8ms) commit transaction
1225
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1226
+  (0.0ms) commit transaction
2292
1227
   (0.0ms) begin transaction
2293
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2294
-  (1.0ms) commit transaction
2295
-  (0.1ms) begin transaction
2296
- SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2297
-  (1.1ms) commit transaction
1228
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1229
+  (0.0ms) commit transaction
1230
+  (0.0ms) begin transaction
1231
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1232
+  (0.0ms) commit transaction
2298
1233
   (0.0ms) begin transaction
2299
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Send], ["object_id", 141], ["object_type", "Message"], ["recipient_id", 281], ["recipient_type", "User"], ["sender_id", 282], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2300
-  (1.0ms) commit transaction
1234
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1235
+  (0.0ms) commit transaction
2301
1236
   (0.0ms) begin transaction
2302
- SQL (0.2ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Send], ["object_id", 141], ["object_type", "Message"], ["recipient_id", 282], ["recipient_type", "User"], ["sender_id", 282], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2303
-  (0.9ms) commit transaction
2304
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 281 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2305
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 282 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1237
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1238
+  (0.0ms) commit transaction
1239
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1240
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2306
1241
   (0.0ms) begin transaction
2307
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2308
-  (1.0ms) commit transaction
2309
-  (0.1ms) begin transaction
2310
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2311
-  (1.2ms) commit transaction
1242
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1243
+  (0.0ms) commit transaction
1244
+  (0.0ms) begin transaction
1245
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1246
+  (0.0ms) commit transaction
2312
1247
   (0.0ms) begin transaction
2313
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2314
-  (0.9ms) commit transaction
1248
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1249
+  (0.0ms) commit transaction
2315
1250
   (0.0ms) begin transaction
2316
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00], ["event_type", :Update], ["object_id", 284], ["object_type", "User"], ["recipient_id", 284], ["recipient_type", "User"], ["sender_id", 284], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:14:30 UTC +00:00]]
2317
-  (0.9ms) commit transaction
2318
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 284 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1251
+ 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", Wed, 08 Aug 2012 23:59:48 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Wed, 08 Aug 2012 23:59:48 UTC +00:00]]
1252
+  (0.0ms) commit transaction
1253
+ 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
2319
1254
  Connecting to database specified by database.yml
2320
-  (0.6ms) begin transaction
2321
-  (0.1ms) rollback transaction
2322
-  (0.0ms) begin transaction
2323
- SQL (29.8ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2324
-  (2.2ms) commit transaction
2325
-  (0.1ms) begin transaction
2326
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2327
-  (1.1ms) commit transaction
1255
+ Connecting to database specified by database.yml
1256
+  (1.6ms) select sqlite_version(*)
1257
+  (0.4ms) CREATE TABLE "messages" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1258
+  (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) 
1259
+  (0.2ms) CREATE TABLE "news_feed_events" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "text" text, "event_object_id" integer, "event_object_type" varchar(255), "event_type" varchar(255), "sender_id" integer, "sender_type" integer, "recipient_id" integer, "recipient_type" varchar(255), "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
1260
+  (0.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
1261
+  (0.2ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
1262
+  (0.0ms) PRAGMA index_list("schema_migrations")
1263
+  (0.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
1264
+  (0.1ms) SELECT version FROM "schema_migrations"
1265
+  (0.1ms) INSERT INTO "schema_migrations" (version) VALUES ('1')
2328
1266
   (0.1ms) begin transaction
2329
- SQL (0.5ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2330
-  (0.9ms) commit transaction
1267
+  (0.0ms) rollback transaction
1268
+  (0.0ms) begin transaction
1269
+ SQL (3.5ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00]]
1270
+  (0.0ms) commit transaction
1271
+  (0.0ms) begin transaction
1272
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00]]
1273
+  (0.0ms) commit transaction
1274
+  (0.0ms) begin transaction
1275
+ SQL (0.2ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00]]
1276
+  (0.0ms) commit transaction
2331
1277
   (0.1ms) begin transaction
2332
- SQL (0.7ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Create], ["object_id", 143], ["object_type", "Message"], ["recipient_id", 285], ["recipient_type", "User"], ["sender_id", 286], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2333
-  (1.2ms) commit transaction
2334
- NewsFeedEvent Load (0.3ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 285 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2335
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
2336
-  (0.1ms) begin transaction
2337
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2338
-  (1.3ms) commit transaction
1278
+ 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", Thu, 09 Aug 2012 04:06:06 UTC +00:00], ["event_object_id", 1], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 1], ["recipient_type", "User"], ["sender_id", 2], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00]]
1279
+  (0.0ms) commit transaction
1280
+ 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
1281
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" ORDER BY "news_feed_events"."id" DESC LIMIT 1
1282
+  (0.0ms) begin transaction
1283
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:06 UTC +00:00]]
1284
+  (0.0ms) commit transaction
2339
1285
   (0.0ms) begin transaction
2340
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2341
-  (1.1ms) commit transaction
2342
-  (0.1ms) begin transaction
2343
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2344
-  (1.2ms) commit transaction
1286
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1287
+  (0.0ms) commit transaction
1288
+  (0.0ms) begin transaction
1289
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1290
+  (0.0ms) commit transaction
2345
1291
   (0.0ms) begin transaction
2346
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Delete], ["object_id", 144], ["object_type", "Message"], ["recipient_id", 287], ["recipient_type", "User"], ["sender_id", 288], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2347
-  (1.4ms) commit transaction
2348
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 287 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1292
+ 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", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 2], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 3], ["recipient_type", "User"], ["sender_id", 4], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1293
+  (0.0ms) commit transaction
1294
+ 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
2349
1295
   (0.0ms) begin transaction
2350
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2351
-  (2.2ms) commit transaction
1296
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1297
+  (0.0ms) commit transaction
2352
1298
   (0.0ms) begin transaction
2353
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2354
-  (1.8ms) commit transaction
1299
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1300
+  (0.0ms) commit transaction
2355
1301
   (0.0ms) begin transaction
2356
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2357
-  (2.0ms) commit transaction
1302
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1303
+  (0.0ms) commit transaction
2358
1304
   (0.0ms) begin transaction
2359
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Delete], ["object_id", 145], ["object_type", "Message"], ["recipient_id", 289], ["recipient_type", "User"], ["sender_id", 290], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2360
-  (2.3ms) commit transaction
1305
+ 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", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Delete], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has deleted a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1306
+  (0.0ms) commit transaction
2361
1307
   (0.0ms) begin transaction
2362
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Create], ["object_id", 145], ["object_type", "Message"], ["recipient_id", 289], ["recipient_type", "User"], ["sender_id", 290], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2363
-  (2.2ms) commit transaction
2364
-  (0.2ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 289
1308
+ SQL (0.1ms) INSERT INTO "news_feed_events" ("created_at", "event_object_id", "event_object_type", "event_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 3], ["event_object_type", "Message"], ["event_type", :Create], ["recipient_id", 5], ["recipient_type", "User"], ["sender_id", 6], ["sender_type", 0], ["text", "Bob Smith has created a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1309
+  (0.0ms) commit transaction
1310
+  (0.1ms) SELECT COUNT(*) FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 5
2365
1311
   (0.0ms) begin transaction
2366
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2367
-  (2.0ms) commit transaction
1312
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1313
+  (0.0ms) commit transaction
2368
1314
   (0.0ms) begin transaction
2369
- SQL (0.3ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2370
-  (1.9ms) commit transaction
1315
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1316
+  (0.0ms) commit transaction
2371
1317
   (0.0ms) begin transaction
2372
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2373
-  (2.0ms) commit transaction
1318
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1319
+  (0.0ms) commit transaction
2374
1320
   (0.0ms) begin transaction
2375
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Send], ["object_id", 146], ["object_type", "Message"], ["recipient_id", 291], ["recipient_type", "User"], ["sender_id", 292], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2376
-  (3.1ms) commit transaction
2377
-  (0.1ms) begin transaction
2378
- SQL (0.4ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Send], ["object_id", 146], ["object_type", "Message"], ["recipient_id", 292], ["recipient_type", "User"], ["sender_id", 292], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2379
-  (1.0ms) commit transaction
2380
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 291 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2381
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 292 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1321
+ 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", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 7], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "Bob Smith has sent you a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1322
+  (0.0ms) commit transaction
1323
+  (0.0ms) begin transaction
1324
+ 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", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 4], ["event_object_type", "Message"], ["event_type", :Send], ["recipient_id", 8], ["recipient_type", "User"], ["sender_id", 8], ["sender_type", 0], ["text", "You have sent Bob Smith a Message: Message Title"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1325
+  (0.0ms) commit transaction
1326
+ NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 7 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1327
+ NewsFeedEvent Load (0.1ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 8 ORDER BY "news_feed_events"."id" DESC LIMIT 1
2382
1328
   (0.0ms) begin transaction
2383
- SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2384
-  (1.0ms) commit transaction
1329
+ SQL (0.2ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1330
+  (0.0ms) commit transaction
2385
1331
   (0.0ms) begin transaction
2386
- SQL (0.4ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2387
-  (1.2ms) commit transaction
1332
+ SQL (0.1ms) INSERT INTO "users" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1333
+  (0.0ms) commit transaction
2388
1334
   (0.0ms) begin transaction
2389
- SQL (0.3ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2390
-  (1.5ms) commit transaction
1335
+ SQL (0.1ms) INSERT INTO "messages" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1336
+  (0.0ms) commit transaction
2391
1337
   (0.0ms) begin transaction
2392
- SQL (0.3ms) INSERT INTO "news_feed_events" ("created_at", "event_type", "object_id", "object_type", "recipient_id", "recipient_type", "sender_id", "sender_type", "text", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00], ["event_type", :Update], ["object_id", 294], ["object_type", "User"], ["recipient_id", 294], ["recipient_type", "User"], ["sender_id", 294], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Tue, 07 Aug 2012 22:39:22 UTC +00:00]]
2393
-  (1.1ms) commit transaction
2394
- NewsFeedEvent Load (0.2ms) SELECT "news_feed_events".* FROM "news_feed_events" WHERE "news_feed_events"."recipient_id" = 294 ORDER BY "news_feed_events"."id" DESC LIMIT 1
1338
+ 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", Thu, 09 Aug 2012 04:06:07 UTC +00:00], ["event_object_id", 10], ["event_object_type", "User"], ["event_type", :Update], ["recipient_id", 10], ["recipient_type", "User"], ["sender_id", 10], ["sender_type", 0], ["text", "You have updated a User: Bob Smith"], ["updated_at", Thu, 09 Aug 2012 04:06:07 UTC +00:00]]
1339
+  (0.0ms) commit transaction
1340
+ 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