story validation, member link

This commit is contained in:
2023-01-12 14:34:26 +02:00
parent 621efd8a9c
commit 3f53b6b21b
3 changed files with 9 additions and 9 deletions

View File

@ -3,6 +3,9 @@ class Story < ApplicationRecord
mount_uploader :picture, PictureUploader
validates :text, length: { maximum: 1000 }
validates :header , length: { minimum: 5 }
def name
header
end