Commit c8fbfb3a authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in app/models/ci/pipeline.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent e92e9594
......@@ -20,7 +20,6 @@ module Ci
s&.project&.pipelines&.maximum(:iid) || s&.project&.pipelines&.count
end
<<<<<<< HEAD
has_one :source_pipeline, class_name: Ci::Sources::Pipeline
has_many :sourced_pipelines, class_name: Ci::Sources::Pipeline, foreign_key: :source_pipeline_id
......@@ -34,10 +33,7 @@ module Ci
s&.project&.pipelines&.maximum(:iid) || s&.project&.pipelines&.count
end
has_many :stages
=======
has_many :stages, -> { order(position: :asc) }, inverse_of: :pipeline
>>>>>>> upstream/master
has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id, inverse_of: :pipeline
has_many :builds, foreign_key: :commit_id, inverse_of: :pipeline
has_many :trigger_requests, dependent: :destroy, foreign_key: :commit_id # rubocop:disable Cop/ActiveRecordDependent
......
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