Sha256: 679be5c40bd46e68a11a854179f4ae4a5c264903bb3ac3a13d40d1424cd9f56a
Contents?: true
Size: 627 Bytes
Versions: 95
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/transplants" require "document/base" module Renalware module Transplants class DonorFollowup < ApplicationRecord belongs_to :operation, class_name: "DonorOperation", foreign_key: "operation_id", touch: true has_paper_trail class_name: "Renalware::Transplants::Version", on: [:create, :update, :destroy] validates :last_seen_on, timeliness: { type: :date, allow_blank: true } validates :dead_on, timeliness: { type: :date, allow_blank: true } end end end
Version data entries
95 entries across 95 versions & 1 rubygems