Skip to content

Commit

Permalink
order messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Choi committed Jun 23, 2013
1 parent ac9482b commit e3b6648
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.rb
Expand Up @@ -16,7 +16,7 @@ class Channel < ActiveRecord::Base
self.primary_key = "channel_id"
has_many :memberships
has_many :users, :through => :memberships
has_many :messages, order: "created desc"
has_many :messages, order: "id desc"
end
class Membership < ActiveRecord::Base
self.primary_key = "membership_id"
Expand Down

0 comments on commit e3b6648

Please sign in to comment.