Add missing association for mock_ci_service

This commit is contained in:
Adam Niedzielski 2017-03-02 17:41:41 +01:00
parent e9d75a4b85
commit 423032a118
2 changed files with 2 additions and 0 deletions

View file

@ -113,6 +113,7 @@ class Project < ActiveRecord::Base
has_one :gitlab_issue_tracker_service, dependent: :destroy, inverse_of: :project
has_one :external_wiki_service, dependent: :destroy
has_one :kubernetes_service, dependent: :destroy, inverse_of: :project
has_one :mock_ci_service, dependent: :destroy
has_one :forked_project_link, dependent: :destroy, foreign_key: "forked_to_project_id"
has_one :forked_from_project, through: :forked_project_link

View file

@ -153,6 +153,7 @@ project:
- gitlab_issue_tracker_service
- external_wiki_service
- kubernetes_service
- mock_ci_service
- forked_project_link
- forked_from_project
- forked_project_links