10 lines
317 B
10 lines
317 B
6 years ago
|
class ExerciseAnswerComment < ApplicationRecord
|
||
|
# belongs_to :exercise_answer
|
||
|
belongs_to :user
|
||
|
belongs_to :exercise_question
|
||
|
belongs_to :exercise_shixun_answer, optional: true
|
||
|
belongs_to :exercise_answer,optional: true
|
||
|
|
||
|
scope :search_answer_comments, lambda {|name,ids| where("#{name}":ids)}
|
||
|
end
|