From 3a1279bf607d6c12dca8fdf83769b94edc37f471 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20G=C3=BCnther?= Date: Wed, 21 Dec 2016 14:57:53 +0100 Subject: [PATCH] Allow categories to be max. 255 long --- app/models/category.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/category.rb b/app/models/category.rb index c83100b865..c10c0ad569 100644 --- a/app/models/category.rb +++ b/app/models/category.rb @@ -34,7 +34,7 @@ class Category < ActiveRecord::Base validates_presence_of :name validates_uniqueness_of :name, scope: [:project_id] - validates_length_of :name, maximum: 256 + validates_length_of :name, maximum: 255 # validates that assignee is member of the issue category's project validates_each :assigned_to_id do |record, attr, value|