# frozen_string_literal: true
class PersonComment < ApplicationRecord
default_scope { order(created_at: :asc) }
################
# Associations #
belongs_to :person
belongs_to :account, optional: true
###############
# Validations #
validates :text, presence: true, length: { in: 1..10_000 }
end