From b2acebb4efdf8023f685cfd14489c49e56d126a7 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Fri, 3 Jun 2016 12:00:16 +0200 Subject: Use ci_commits table --- app/models/ci/pipeline.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app') 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' -- cgit v1.2.3