diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-23 13:15:14 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2019-01-25 12:39:26 +0300 |
commit | 3508948dfeda84b9ce84325133c96e8f8aa12b85 (patch) | |
tree | b756987c91f1c615e88910a9cbfe2f86bc8a9c3e /app | |
parent | cfbcc191f0ea13b4e1676bac029840759b264694 (diff) |
Add a new relation between a stage and related bridges
Diffstat (limited to 'app')
-rw-r--r-- | app/models/ci/stage.rb | 1 |
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 |