2017-08-17 22:00:37 +05:30
|
|
|
module Ci
|
2017-09-10 17:25:29 +05:30
|
|
|
class Stage < ActiveRecord::Base
|
|
|
|
extend Ci::Model
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
belongs_to :project
|
|
|
|
belongs_to :pipeline
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id
|
|
|
|
has_many :builds, foreign_key: :commit_id
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|
|
|
|
end
|