Sha256: 4f61af2be137ada1182dbe3f2c4753512fc42a1b435f781cd52743dbcf445fa2

Contents?: true

Size: 326 Bytes

Versions: 99

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require_dependency "renalware/problems"

module Renalware
  module Problems
    class Note < ApplicationRecord
      include Accountable

      belongs_to :problem, touch: true

      scope :ordered, -> { order(created_at: :asc) }

      validates :description, presence: true
    end
  end
end

Version data entries

99 entries across 99 versions & 1 rubygems

Version Path
renalware-core-2.0.116 app/models/renalware/problems/note.rb
renalware-core-2.0.115 app/models/renalware/problems/note.rb
renalware-core-2.0.113 app/models/renalware/problems/note.rb
renalware-core-2.0.112 app/models/renalware/problems/note.rb
renalware-core-2.0.111 app/models/renalware/problems/note.rb
renalware-core-2.0.110 app/models/renalware/problems/note.rb
renalware-core-2.0.109 app/models/renalware/problems/note.rb
renalware-core-2.0.108 app/models/renalware/problems/note.rb
renalware-core-2.0.106 app/models/renalware/problems/note.rb
renalware-core-2.0.105 app/models/renalware/problems/note.rb
renalware-core-2.0.104 app/models/renalware/problems/note.rb
renalware-core-2.0.103 app/models/renalware/problems/note.rb
renalware-core-2.0.102 app/models/renalware/problems/note.rb
renalware-core-2.0.101 app/models/renalware/problems/note.rb
renalware-core-2.0.100 app/models/renalware/problems/note.rb
renalware-core-2.0.99 app/models/renalware/problems/note.rb
renalware-core-2.0.98 app/models/renalware/problems/note.rb
renalware-core-2.0.97 app/models/renalware/problems/note.rb
renalware-core-2.0.96 app/models/renalware/problems/note.rb
renalware-core-2.0.95 app/models/renalware/problems/note.rb