diff options
author | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 23:09:59 +0400 |
---|---|---|
committer | Andrew8xx8 <avk@8xx8.ru> | 2013-03-24 23:09:59 +0400 |
commit | 9e2525cbd0da4204f93937e368e277be38d1a7b3 (patch) | |
tree | a29e5e6a0a20f7b2ef461d29f781f9844e2377ad /app | |
parent | 5b35000f16201bd631f161ef6d79b0a77dc2c27b (diff) | |
download | gitlab-ce-9e2525cbd0da4204f93937e368e277be38d1a7b3.tar.gz |
Association form user to snippets added
Diffstat (limited to 'app')
-rw-r--r-- | app/models/user.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index c73353bf032..e6ab66f4bc7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -75,6 +75,7 @@ class User < ActiveRecord::Base has_many :team_projects, through: :user_team_project_relationships # Projects + has_many :snippets, dependent: :destroy, foreign_key: :author_id, class_name: "Snippet" has_many :users_projects, dependent: :destroy has_many :issues, dependent: :destroy, foreign_key: :author_id has_many :notes, dependent: :destroy, foreign_key: :author_id |