Limit maximum event title length to 65

This commit is contained in:
Petko Bordjukov 2018-11-08 20:20:33 +02:00
parent c375ca9087
commit 1e0f1e205f
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ class Event < ActiveRecord::Base
scope :approved, -> { where(propositions: {status: Proposition.statuses[:approved]})} scope :approved, -> { where(propositions: {status: Proposition.statuses[:approved]})}
validates :conference, presence: true validates :conference, presence: true
validates :title, presence: true validates :title, presence: true, length: { maximum: 65 }
validates :abstract, presence: true validates :abstract, presence: true
validates :description, presence: true validates :description, presence: true
validates :agreement, acceptance: true validates :agreement, acceptance: true