From 24084c303e80eafb85b69573c228b49ffe7487c9 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 10 Apr 2019 10:02:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E5=88=B6=E4=BD=9C=E8=80=85?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E5=8F=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/subject.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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