Removed validation on spam_field for int in Account model
• Removed: - validation on spam_field for int in Account model
This commit is contained in:
parent
187eb5ae78
commit
b7d6d5f18c
|
@ -88,7 +88,6 @@ class Account < ApplicationRecord
|
||||||
validates :display_name, length: { maximum: 30 }, if: -> { local? && will_save_change_to_display_name? }
|
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 :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 :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 :remote, -> { where.not(domain: nil) }
|
||||||
scope :local, -> { where(domain: nil) }
|
scope :local, -> { where(domain: nil) }
|
||||||
|
|
Loading…
Reference in New Issue