Merge pull request #5129 from opf/fix/24446/offbyone

Allow categories to be max. 255 long
pull/5131/head
Oliver Günther 8 years ago committed by GitHub
commit e1494b985d
  1. 2
      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|

Loading…
Cancel
Save