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

@ -6,6 +6,7 @@ module IssueCommonality
belongs_to :project
belongs_to :author, class_name: "User"
belongs_to :assignee, class_name: "User"
belongs_to :milestone
has_many :notes, as: :noteable, dependent: :destroy
validates :project, presence: true