about summary refs log tree commit diff
path: root/app/models/account_note.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-11-06 00:33:55 +0100
committerGitHub <noreply@github.com>2021-11-06 00:33:55 +0100
commita25839340e93b1e93b7b99b0f65fa7da7d62bad2 (patch)
treea329d65c115e752c3be5c262ebf96f69cd13861a /app/models/account_note.rb
parente0f39626973fd9f5cce2d4cd3b166fb47e9c9059 (diff)
parent4bb6b1a1e788abac7d1745e0f4eb72ad4d4ec110 (diff)
Merge pull request #1628 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/account_note.rb')
-rw-r--r--app/models/account_note.rb1
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