1
0
Fork 0

Improve validations

This commit is contained in:
Alex Kotov 2019-09-30 17:35:06 +05:00
parent b1fd74f67a
commit 66301471a5
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -17,5 +17,5 @@ class PersonComment < ApplicationRecord
# Validations #
###############
validates :text, presence: true, length: { in: 1..10_000 }
validates :text, good_big_text: true
end