Increase max key length. Some keys has comment after key string.

This commit is contained in:
Vyacheslav Slinko 2011-10-18 15:13:57 +04:00
parent 757ea63466
commit c374eb80ff

View file

@ -8,7 +8,7 @@ class Key < ActiveRecord::Base
validates :key, validates :key,
:presence => true, :presence => true,
:uniqueness => true, :uniqueness => true,
:length => { :within => 0..555 } :length => { :within => 0..1024 }
before_save :set_identifier before_save :set_identifier
after_save :update_gitosis after_save :update_gitosis