Sha256: a5c6df6ce63d525861bcddb5e8bde704e82261f9e005a20c8c924427ec714b13

Contents?: true

Size: 515 Bytes

Versions: 3

Compression:

Stored size: 515 Bytes

Contents

require_dependency "renalware/messaging"

module Renalware
  module Messaging
    class Message < ApplicationRecord
      validates :body, presence: true
      validates :subject, presence: true
      validates :author, presence: true
      validates :patient, presence: true
      validates :sent_at, presence: true

      belongs_to :patient
      belongs_to :author
      belongs_to :replying_to_message, class_name: name
      has_many :receipts
      has_many :recipients, through: :receipts
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta6 app/models/renalware/messaging/message.rb
renalware-core-2.0.0.pre.beta5 app/models/renalware/messaging/message.rb