diff --git a/app/models/subject.rb b/app/models/subject.rb index 59e84ee3..af330e85 100644 --- a/app/models/subject.rb +++ b/app/models/subject.rb @@ -2,7 +2,7 @@ class Subject < ActiveRecord::Base #status :0 编辑中 1 审核中 2 发布 # belongs_to :user has_many :users, :through => :subject_members - has_many :subject_members, :dependent => :destroy, :order => "subject_members.id ASC" + has_many :subject_members, :dependent => :destroy, :order => "subject_members.id DESC" has_many :career_stages, :through => :career_stage_subjects has_many :career_stage_subjects, :dependent => :destroy