Sha256: 0671edaace6daaa07b10d76592468b54812013359fdbee88f51b8a8c137be22a

Contents?: true

Size: 432 Bytes

Versions: 9

Compression:

Stored size: 432 Bytes

Contents

require_dependency "renalware/patients"

module Renalware
  module Patients
    class Worry < ApplicationRecord
      include Accountable
      has_paper_trail class_name: "Renalware::Patients::Version"

      belongs_to :patient,
                 class_name: "Renalware::Patient",
                 foreign_key: :patient_id,
                 touch: true

      validates :patient, presence: true, uniqueness: true
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/patients/worry.rb
renalware-core-2.0.7 app/models/renalware/patients/worry.rb
renalware-core-2.0.5 app/models/renalware/patients/worry.rb
renalware-core-2.0.4 app/models/renalware/patients/worry.rb
renalware-core-2.0.3 app/models/renalware/patients/worry.rb
renalware-core-2.0.2 app/models/renalware/patients/worry.rb
renalware-core-2.0.1 app/models/renalware/patients/worry.rb
renalware-core-2.0.0 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/patients/worry.rb