diff options
Diffstat (limited to 'app/models/account_note.rb')
-rw-r--r-- | app/models/account_note.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/account_note.rb b/app/models/account_note.rb index bf61df923..b338bc92f 100644 --- a/app/models/account_note.rb +++ b/app/models/account_note.rb @@ -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 |