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

13 lines
340 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Ci
class TestCaseFailure < ApplicationRecord
extend Gitlab::Ci::Model
validates :test_case, :build, :failed_at, presence: true
belongs_to :test_case, class_name: "Ci::TestCase", foreign_key: :test_case_id
belongs_to :build, class_name: "Ci::Build", foreign_key: :build_id
end
end