Sha256: 647042de14c472ef051d9d179b026d0df27503fbbaff92fc5778ed664bb7a3e6
Contents?: true
Size: 434 Bytes
Versions: 10
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/ukrdc" module Renalware module UKRDC class Treatment < ApplicationRecord belongs_to :patient belongs_to :clinician, class_name: "Renalware::User" belongs_to :modality_code validates :patient, presence: true validates :modality_code, presence: true scope :ordered, -> { order(started_on: :asc, ended_on: :asc) } end end end
Version data entries
10 entries across 10 versions & 1 rubygems