diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-11 12:52:56 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-11 12:52:56 +0200 |
commit | a8dd4d36e2ba2bcf2488ce12aa0809c339653fc8 (patch) | |
tree | 96ddb306cc83f0916c118a2a02f059342a2cba60 /app/models/ci/project.rb | |
parent | 9a9417ee8e8f3d8fe8320eaaf150ff1eb77a471e (diff) | |
download | gitlab-ce-a8dd4d36e2ba2bcf2488ce12aa0809c339653fc8.tar.gz |
Fix build features specs
Diffstat (limited to 'app/models/ci/project.rb')
-rw-r--r-- | app/models/ci/project.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/ci/project.rb b/app/models/ci/project.rb index 9c9198302f6..c9e5707f218 100644 --- a/app/models/ci/project.rb +++ b/app/models/ci/project.rb @@ -28,9 +28,11 @@ module Ci class Project < ActiveRecord::Base extend Ci::Model - + include Ci::ProjectStatus + belongs_to :gl_project, class_name: 'Project', foreign_key: :gitlab_id + has_many :commits, ->() { order(:committed_at) }, dependent: :destroy, class_name: 'Ci::Commit' has_many :builds, through: :commits, dependent: :destroy, class_name: 'Ci::Build' has_many :runner_projects, dependent: :destroy, class_name: 'Ci::RunnerProject' |