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:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 13:00:16 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-03 13:00:16 +0300
commitb2acebb4efdf8023f685cfd14489c49e56d126a7 (patch)
tree2808f0b67df48e305453997b4899c18c442eb0cb /app
parent021d3810c300d1e0514f21ccb6f1439f59e20565 (diff)
Use ci_commits table
Diffstat (limited to 'app')
-rw-r--r--app/models/ci/pipeline.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/pipeline.rb b/app/models/ci/pipeline.rb
index 74347cf142f..4d4f8951366 100644
--- a/app/models/ci/pipeline.rb
+++ b/app/models/ci/pipeline.rb
@@ -3,6 +3,8 @@ module Ci
extend Ci::Model
include Statuseable
+ self.table_name = 'ci_commits'
+
belongs_to :project, class_name: '::Project', foreign_key: :gl_project_id
has_many :statuses, class_name: 'CommitStatus'
has_many :builds, class_name: 'Ci::Build'