Sha256: 9ccc9bd1c39aaf6965ed0e1541e82b561a74dd65da57cc96b39aa63f586ca25e

Contents?: true

Size: 494 Bytes

Versions: 15

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/patients"

module Renalware
  module Patients
    class Worry < ApplicationRecord
      include Accountable

      has_paper_trail(
        versions: { class_name: "Renalware::Patients::Version" },
        on: [:create, :update, :destroy]
      )

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

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
renalware-core-2.1.1 app/models/renalware/patients/worry.rb
renalware-core-2.1.0 app/models/renalware/patients/worry.rb
renalware-core-2.0.167 app/models/renalware/patients/worry.rb
renalware-core-2.0.166 app/models/renalware/patients/worry.rb
renalware-core-2.0.165 app/models/renalware/patients/worry.rb
renalware-core-2.0.164 app/models/renalware/patients/worry.rb
renalware-core-2.0.163 app/models/renalware/patients/worry.rb
renalware-core-2.0.162 app/models/renalware/patients/worry.rb
renalware-core-2.0.161 app/models/renalware/patients/worry.rb
renalware-core-2.0.160 app/models/renalware/patients/worry.rb
renalware-core-2.0.159 app/models/renalware/patients/worry.rb
renalware-core-2.0.158 app/models/renalware/patients/worry.rb
renalware-core-2.0.157 app/models/renalware/patients/worry.rb
renalware-core-2.0.156 app/models/renalware/patients/worry.rb
renalware-core-2.0.155 app/models/renalware/patients/worry.rb