This commit is contained in:
Toks
2013-12-09 15:05:12 -05:00
parent 74e30ea25b
commit 347561c838
3 changed files with 9 additions and 4 deletions

View File

@@ -26,7 +26,7 @@ class Post < ActiveRecord::Base
has_one :artist_commentary
has_many :flags, :class_name => "PostFlag", :dependent => :destroy
has_many :appeals, :class_name => "PostAppeal", :dependent => :destroy
has_many :versions, :class_name => "PostVersion", :dependent => :destroy, :order => "post_versions.id ASC"
has_many :versions, :class_name => "PostVersion", :dependent => :destroy, :order => "post_versions.updated_at ASC, post_versions.id ASC"
has_many :votes, :class_name => "PostVote", :dependent => :destroy
has_many :notes, :dependent => :destroy
has_many :comments, :order => "comments.id", :dependent => :destroy