|
|
@ -1,6 +1,6 @@
|
|
|
|
class StudentWorksScore < ApplicationRecord
|
|
|
|
class StudentWorksScore < ApplicationRecord
|
|
|
|
#appeal_status: 0:正常;1:申诉中,2:撤销申诉;3:申诉成功;4:申诉被拒绝;5:申诉失效
|
|
|
|
#appeal_status: 0:正常;1:申诉中,2:撤销申诉;3:申诉成功;4:申诉被拒绝;5:申诉失效
|
|
|
|
belongs_to :student_work
|
|
|
|
belongs_to :student_work
|
|
|
|
belongs_to :user
|
|
|
|
belongs_to :user
|
|
|
|
has_many :journals_for_messages, -> { order('created_on desc') }, as: :jour, dependent: :destroy
|
|
|
|
has_many :journals_for_messages, -> { order('created_on desc') }, as: :jour, dependent: :destroy
|
|
|
|
has_one :student_works_scores_appeal, dependent: :destroy
|
|
|
|
has_one :student_works_scores_appeal, dependent: :destroy
|
|
|
|