1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/models/person_comment.rb
2019-09-30 17:35:06 +05:00

21 lines
365 B
Ruby

# 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