From 6f1c8022925455e5ac2eb49c3ffb54e132aa0af1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 11 Apr 2025 18:28:23 +0200 Subject: [PATCH] Content being required via UI and db constraint is enough We are not using/displaying model validations anywhere --- app/models/reaction.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/reaction.rb b/app/models/reaction.rb index 6eefb7963..45d9c1796 100644 --- a/app/models/reaction.rb +++ b/app/models/reaction.rb @@ -4,8 +4,6 @@ class Reaction < ApplicationRecord scope :ordered, -> { order(:created_at) } - validates_presence_of :content - def all_emoji? content.match? /\A(\p{Emoji_Presentation}|\p{Extended_Pictographic}|\uFE0F)+\z/u end