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.94 app/models/renalware/problems/note.rb
renalware-core-2.0.93 app/models/renalware/problems/note.rb
renalware-core-2.0.92 app/models/renalware/problems/note.rb
renalware-core-2.0.91 app/models/renalware/problems/note.rb
renalware-core-2.0.90 app/models/renalware/problems/note.rb
renalware-core-2.0.89 app/models/renalware/problems/note.rb
renalware-core-2.0.88 app/models/renalware/problems/note.rb
renalware-core-2.0.87 app/models/renalware/problems/note.rb
renalware-core-2.0.86 app/models/renalware/problems/note.rb
renalware-core-2.0.85 app/models/renalware/problems/note.rb
renalware-core-2.0.84 app/models/renalware/problems/note.rb
renalware-core-2.0.83 app/models/renalware/problems/note.rb
renalware-core-2.0.82 app/models/renalware/problems/note.rb
renalware-core-2.0.81 app/models/renalware/problems/note.rb
renalware-core-2.0.80 app/models/renalware/problems/note.rb
renalware-core-2.0.79 app/models/renalware/problems/note.rb
renalware-core-2.0.78 app/models/renalware/problems/note.rb
renalware-core-2.0.77 app/models/renalware/problems/note.rb
renalware-core-2.0.76 app/models/renalware/problems/note.rb
renalware-core-2.0.75 app/models/renalware/problems/note.rb