summaryrefslogtreecommitdiff
path: root/app/models/ml/candidate_param.rb
blob: cbdddcc8a1a37701cbbc59678d0b42fbb987259a (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

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

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