Don't touch result when comment is created [SCI-7596]

This commit is contained in:
Martin Artnik 2023-01-04 12:55:32 +01:00
parent 9e75a54635
commit 7460cc5b82

View file

@ -3,7 +3,7 @@
class ResultComment < Comment
before_create :fill_unseen_by
belongs_to :result, foreign_key: :associated_id, inverse_of: :result_comments, touch: true
belongs_to :result, foreign_key: :associated_id, inverse_of: :result_comments
validates :result, presence: true