实训制作者排序变化

dev_haigong
daiao 6 years ago
parent 82bdae08d5
commit 24084c303e

@ -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

Loading…
Cancel
Save