summaryrefslogtreecommitdiff
path: root/app/models/ml/candidate_param.rb
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