stage.rb 249 Bytes EditWeb IDE 1 2 3 4 5 6 7 8 9 10 11 module Ci class Stage < ActiveRecord::Base extend Ci::Model belongs_to :project belongs_to :pipeline has_many :statuses, class_name: 'CommitStatus', foreign_key: :commit_id has_many :builds, foreign_key: :commit_id end end