2017-03-08 20:18:20 +08:00
|
|
|
class ResultComment < Comment
|
2017-04-20 05:38:23 +08:00
|
|
|
belongs_to :result, foreign_key: :associated_id, inverse_of: :result_comments
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2017-03-08 20:18:20 +08:00
|
|
|
validates :result, presence: true
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|