Observe issue, merge request, note creation - create event

This commit is contained in:
Dmitriy Zaporozhets 2012-02-28 16:01:14 +02:00
parent a847501fd2
commit dcdb2fdfdb
12 changed files with 130 additions and 25 deletions

View file

@ -3,6 +3,7 @@ require "grit"
class Project < ActiveRecord::Base
belongs_to :owner, :class_name => "User"
has_many :events, :dependent => :destroy
has_many :merge_requests, :dependent => :destroy
has_many :issues, :dependent => :destroy, :order => "position"
has_many :users_projects, :dependent => :destroy