Added several validates_length_of
git-svn-id: http://redmine.rubyforge.org/svn/trunk@593 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -21,4 +21,5 @@ class Document < ActiveRecord::Base
|
||||
has_many :attachments, :as => :container, :dependent => :destroy
|
||||
|
||||
validates_presence_of :project, :title, :category
|
||||
validates_length_of :title, :maximum => 60
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user