From 1e0f1e205f00b9bb171c678e02ae64978b346651 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Thu, 8 Nov 2018 20:20:33 +0200 Subject: [PATCH] Limit maximum event title length to 65 --- app/models/event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/event.rb b/app/models/event.rb index 62c18d8..e7cbc52 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -19,7 +19,7 @@ class Event < ActiveRecord::Base scope :approved, -> { where(propositions: {status: Proposition.statuses[:approved]})} validates :conference, presence: true - validates :title, presence: true + validates :title, presence: true, length: { maximum: 65 } validates :abstract, presence: true validates :description, presence: true validates :agreement, acceptance: true