We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8998497 commit eeadc1cCopy full SHA for eeadc1c
app/models/topic.rb
@@ -8,6 +8,7 @@ class Topic < ApplicationRecord
8
PROPOSAL_TYPES = %w[proposal enquiry].freeze
9
validates :user, :name, :description, :label, presence: true
10
validates :proposal_type, inclusion: { in: PROPOSAL_TYPES }
11
+ validates :name, length: { maximum: 255 }
12
13
belongs_to :user
14
belongs_to :event, optional: true
0 commit comments