Increased minimum title length for forum groups and forums.

This commit is contained in:
Logan Fick
2017-10-28 21:48:14 -04:00
parent 7520efb683
commit 5b3b0fe3ef
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ class Forum < ActiveRecord::Base
belongs_to :role_read, class_name: "Role", foreign_key: "role_read_id"
belongs_to :role_write, class_name: "Role", foreign_key: "role_write_id"
has_and_belongs_to_many :labels
validates_length_of :name, in: 2..30
validates_length_of :name, in: 4..30
def to_s
name

View File

@@ -7,7 +7,7 @@ class Forumgroup < ActiveRecord::Base
validates_presence_of :name, :position
validates_length_of :name, in: 2..20
validates_length_of :name, in: 4..20
def to_s
name