diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 12:00:16 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-03 12:00:16 +0200 |
commit | b2acebb4efdf8023f685cfd14489c49e56d126a7 (patch) | |
tree | 2808f0b67df48e305453997b4899c18c442eb0cb | |
parent | 021d3810c300d1e0514f21ccb6f1439f59e20565 (diff) | |
download | gitlab-ce-b2acebb4efdf8023f685cfd14489c49e56d126a7.tar.gz |
Use ci_commits table
-rw-r--r-- | app/models/ci/pipeline.rb | 2 |
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' |