Commit 93e003aa61e885fe129b9678b1894e485c25c81c
1 parent
4a53e028
Exists in
master
and in
4 other branches
Restore users assoc with project
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
app/models/project.rb
... | ... | @@ -56,12 +56,14 @@ class Project < ActiveRecord::Base |
56 | 56 | has_many :merge_requests, dependent: :destroy |
57 | 57 | has_many :issues, dependent: :destroy, order: "state DESC, created_at DESC" |
58 | 58 | has_many :milestones, dependent: :destroy |
59 | - has_many :users_projects, dependent: :destroy | |
60 | 59 | has_many :notes, dependent: :destroy |
61 | 60 | has_many :snippets, dependent: :destroy, class_name: "ProjectSnippet" |
62 | 61 | has_many :hooks, dependent: :destroy, class_name: "ProjectHook" |
63 | 62 | has_many :protected_branches, dependent: :destroy |
64 | 63 | |
64 | + has_many :users_projects, dependent: :destroy | |
65 | + has_many :users, through: :users_projects | |
66 | + | |
65 | 67 | has_many :deploy_keys_projects, dependent: :destroy |
66 | 68 | has_many :deploy_keys, through: :deploy_keys_projects |
67 | 69 | ... | ... |