Welcome to mirror list, hosted at ThFree Co, Russian Federation.

candidate_metric.rb « ml « models « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e03a8b83ee6f56ab924c33d1165e8bba090e3cbe (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

module Ml
  class CandidateMetric < ApplicationRecord
    validates :candidate, presence: true
    validates :name, length: { maximum: 250 }, presence: true

    belongs_to :candidate, class_name: 'Ml::Candidate'
  end
end