summaryrefslogtreecommitdiff
path: root/app/models/ml/candidate.rb
blob: e181217f01c367e111220e95da1f8e0d5cc3e7cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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