From b7d6d5f18c12f42a3575119e4b454bd975f68c54 Mon Sep 17 00:00:00 2001 From: Developer <> Date: Fri, 19 Feb 2021 12:31:06 -0500 Subject: [PATCH] Removed validation on spam_field for int in Account model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Removed: - validation on spam_field for int in Account model --- app/models/account.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/app/models/account.rb b/app/models/account.rb index f47eae2f..10dc7ae5 100644 --- a/app/models/account.rb +++ b/app/models/account.rb @@ -88,7 +88,6 @@ class Account < ApplicationRecord validates :display_name, length: { maximum: 30 }, if: -> { local? && will_save_change_to_display_name? } validates :note, note_length: { maximum: 500 }, if: -> { local? && will_save_change_to_note? } validates :fields, length: { maximum: 6 }, if: -> { local? && will_save_change_to_fields? } - validates :spam_flag, inclusion: { in: SPAM_FLAG_CLASS_MAP.values } scope :remote, -> { where.not(domain: nil) } scope :local, -> { where(domain: nil) }