10 lines
261 B
Ruby
10 lines
261 B
Ruby
# 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
|