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

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

module Ml
  class CandidateParam < ApplicationRecord
    validates :candidate, presence: true
    validates :name, uniqueness: { scope: :candidate }
    validates :name, :value, length: { maximum: 250 }, presence: true

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