app/models/person_comment.rb
# frozen_string_literal: true
class PersonComment < ApplicationRecord
default_scope { order(created_at: :asc) }
################
# Associations #
################
belongs_to :person
belongs_to :account, optional: true
has_one_attached :attachment
###############
# Validations #
###############
validates :text, good_big_text: true
end