Refactor milestones related functionality. Added seeds for Milestine and MR

This commit is contained in:
randx 2012-10-30 09:22:24 +02:00
parent 53a3be03fc
commit e4cf99db46
7 changed files with 39 additions and 10 deletions

View file

@ -7,8 +7,6 @@ class Issue < ActiveRecord::Base
acts_as_taggable_on :labels
belongs_to :milestone
validates :description, length: { within: 0..2000 }
def self.open_for(user)

View file

@ -10,8 +10,6 @@ class MergeRequest < ActiveRecord::Base
attr_accessor :should_remove_source_branch
belongs_to :milestone
BROKEN_DIFF = "--broken-diff"
UNCHECKED = 1