2022-08-27 11:52:29 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module Ml
|
|
|
|
class CandidateParam < ApplicationRecord
|
|
|
|
validates :candidate, presence: true
|
2022-11-25 23:54:43 +05:30
|
|
|
validates :name, uniqueness: { scope: :candidate }
|
2022-08-27 11:52:29 +05:30
|
|
|
validates :name, :value, length: { maximum: 250 }, presence: true
|
|
|
|
|
|
|
|
belongs_to :candidate, class_name: 'Ml::Candidate'
|
|
|
|
end
|
|
|
|
end
|