gitlab-org--gitlab-foss/app/models/ci/build_pending_state.rb

12 lines
302 B
Ruby

# frozen_string_literal: true
class Ci::BuildPendingState < ApplicationRecord
extend Gitlab::Ci::Model
belongs_to :build, class_name: 'Ci::Build', foreign_key: :build_id
enum state: Ci::Stage.statuses
enum failure_reason: CommitStatus.failure_reasons
validates :build, presence: true
end