2024-09-05 22:54:38 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
2024-07-16 20:22:59 +02:00
|
|
|
class Report < ApplicationRecord
|
2024-07-20 16:52:12 +02:00
|
|
|
has_rich_text :comment_html
|
|
|
|
|
|
2024-07-16 20:22:59 +02:00
|
|
|
has_many :elements, dependent: :destroy
|
2024-07-19 02:29:18 +02:00
|
|
|
|
2024-07-20 16:52:12 +02:00
|
|
|
validates :name, presence: true
|
2024-07-16 20:22:59 +02:00
|
|
|
end
|