Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-23 13:15:14 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2019-01-25 12:39:26 +0300
commit3508948dfeda84b9ce84325133c96e8f8aa12b85 (patch)
treeb756987c91f1c615e88910a9cbfe2f86bc8a9c3e /app
parentcfbcc191f0ea13b4e1676bac029840759b264694 (diff)
Add a new relation between a stage and related bridges
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/stage.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/stage.rb b/app/models/ci/stage.rb
index 58f3fe2460a..0389945191e 100644
--- a/app/models/ci/stage.rb
+++ b/app/models/ci/stage.rb
@@ -14,6 +14,7 @@ module Ci
has_many :statuses, class_name: 'CommitStatus', foreign_key: :stage_id
has_many :builds, foreign_key: :stage_id
+ has_many :bridges, foreign_key: :stage_id
with_options unless: :importing? do
validates :project, presence: true