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
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-21 12:39:46 +0300
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-21 16:13:32 +0300
commit631bd9bf082c396059867d512fcfbdc80445c65e (patch)
tree65f5c54174b5cf75d9bf0dd660ca4ac7a9585c1b /app/models/project.rb
parentb113330fab21d3da547cbee057b825f2225676c6 (diff)
Use persisted stages to load pipelines index table
Diffstat (limited to 'app/models/project.rb')
-rw-r--r--app/models/project.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 35c873830a7..50b8a9a95ea 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -227,6 +227,7 @@ class Project < ActiveRecord::Base
has_many :commit_statuses
has_many :pipelines, class_name: 'Ci::Pipeline', inverse_of: :project
+ has_many :stages, class_name: 'Ci::Stage', inverse_of: :project
# Ci::Build objects store data on the file system such as artifact files and
# build traces. Currently there's no efficient way of removing this data in