debian-mirror-gitlab/app/models/ml/candidate.rb
2022-08-27 11:52:29 +05:30

12 lines
328 B
Ruby

# frozen_string_literal: true
module Ml
class Candidate < ApplicationRecord
validates :iid, :experiment, presence: true
belongs_to :experiment, class_name: 'Ml::Experiment'
belongs_to :user
has_many :metrics, class_name: 'Ml::CandidateMetric'
has_many :params, class_name: 'Ml::CandidateParam'
end
end