Fix AccountNote not having a maximum length (#16942)
This commit is contained in:
parent
39cdf61ab7
commit
87085a5152
4 changed files with 86 additions and 12 deletions
|
@ -17,4 +17,5 @@ class AccountNote < ApplicationRecord
|
|||
belongs_to :target_account, class_name: 'Account'
|
||||
|
||||
validates :account_id, uniqueness: { scope: :target_account_id }
|
||||
validates :comment, length: { maximum: 2_000 }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue