Added another field - last_activity_at - to messages, used in sorting messages for...
authorMarius Mathiesen <marius@shortcut.no>
Thu, 10 Dec 2009 14:21:40 +0000 (15:21 +0100)
committerMarius Mathiesen <marius@shortcut.no>
Thu, 10 Dec 2009 14:21:55 +0000 (15:21 +0100)
commit1232709ba6a6017ef7ed7d71a251ff1c9bdec086
tree434fcb11af33bcefbbc30bd08b41046cfbe47cf4
parent01cea0f0095281e5815262838da611f4e552c60d
Added another field - last_activity_at - to messages, used in sorting messages for a user.

This field is updated independently of other actions on a thread. On new records it is the current time,
when a reply is created, this is set to current time.
app/models/message.rb
app/models/user.rb
db/migrate/20091210132746_adding_last_activity_at_to_messages.rb [new file with mode: 0644]
db/schema.rb
test/unit/message_test.rb