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