Improve validations
This commit is contained in:
parent
b1fd74f67a
commit
66301471a5
1 changed files with 1 additions and 1 deletions
|
@ -17,5 +17,5 @@ class PersonComment < ApplicationRecord
|
|||
# Validations #
|
||||
###############
|
||||
|
||||
validates :text, presence: true, length: { in: 1..10_000 }
|
||||
validates :text, good_big_text: true
|
||||
end
|
||||
|
|
Reference in a new issue