Increase IRC field length

This commit is contained in:
Ari Timonen 2020-11-22 03:31:52 +02:00
parent 9fec9b345a
commit 6e6bfe507d

View file

@ -33,7 +33,7 @@ class Team < ActiveRecord::Base
validates_presence_of :name, :tag
validates_length_of :name, :tag, :in => 2..20
validates_length_of :irc, :maximum => 20, :allow_blank => true
validates_length_of :irc, :maximum => 60, :allow_blank => true
validates_length_of :web, :maximum => 50, :allow_blank => true
validates_format_of :country, :with => /\A[A-Z]{2}\z/, :allow_blank => true
validates_length_of [:comment, :recruiting], :in => 0..75, :allow_blank => true