Sha256: 93775f7aee95005c66f1de3537d42dd11c6fea664935ede269429a6047a7479d

Contents?: true

Size: 368 Bytes

Versions: 19

Compression:

Stored size: 368 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

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

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc3 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.rc1 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta12 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta11 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta10 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta9 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta8 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta7 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/patients/worry.rb
renalware-core-2.0.0.pre.beta4 app/models/renalware/patients/worry.rb