cosmetical cleanup of models
This commit is contained in:
parent
2a4359a572
commit
841e4fbd08
18 changed files with 108 additions and 226 deletions
|
@ -9,8 +9,7 @@ class Issue < ActiveRecord::Base
|
|||
|
||||
belongs_to :milestone
|
||||
|
||||
validates :description,
|
||||
length: { within: 0..2000 }
|
||||
validates :description, length: { within: 0..2000 }
|
||||
|
||||
def self.open_for(user)
|
||||
opened.assigned(user)
|
||||
|
@ -32,6 +31,7 @@ class Issue < ActiveRecord::Base
|
|||
closed_changed? && !closed
|
||||
end
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: issues
|
||||
|
@ -49,4 +49,3 @@ end
|
|||
# description :text
|
||||
# milestone_id :integer
|
||||
#
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue