From 7460cc5b82a06c7f7143fdc70f3b598d5711ad84 Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 4 Jan 2023 12:55:32 +0100 Subject: [PATCH] Don't touch result when comment is created [SCI-7596] --- app/models/result_comment.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/result_comment.rb b/app/models/result_comment.rb index e373f7886..8996dd358 100644 --- a/app/models/result_comment.rb +++ b/app/models/result_comment.rb @@ -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