Skip to content

Commit

Permalink
limit event name
Browse files Browse the repository at this point in the history
  • Loading branch information
zonque committed Mar 7, 2024
1 parent 9d8aa57 commit 869cdf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ class Event < ActiveRecord::Base
has_many :entries, dependent: :destroy

validates_presence_of :name
validates_length_of :name, maximum: 100
validates_length_of :name, maximum: 30

validates_presence_of :description
validates_length_of :description, maximum: 10000
Expand Down

0 comments on commit 869cdf6

Please sign in to comment.