Commit 7a0ee5b6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix project_group_link assoc

parent f81d0fb9
...@@ -67,7 +67,7 @@ class Project < ActiveRecord::Base ...@@ -67,7 +67,7 @@ class Project < ActiveRecord::Base
has_many :deploy_keys_projects, dependent: :destroy has_many :deploy_keys_projects, dependent: :destroy
has_many :deploy_keys, through: :deploy_keys_projects has_many :deploy_keys, through: :deploy_keys_projects
has_many :project_group_links_path, dependent: :destroy has_many :project_group_links, dependent: :destroy
has_many :invited_groups, through: :project_group_links, source: 'group' has_many :invited_groups, through: :project_group_links, source: 'group'
delegate :name, to: :owner, allow_nil: true, prefix: true delegate :name, to: :owner, allow_nil: true, prefix: true
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment