libertarian-party/partynest

View on GitHub
app/models/person_comment.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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