a11yist/app/models/report.rb

10 lines
251 B
Ruby
Raw Normal View History

2024-09-05 22:54:38 +02:00
# frozen_string_literal: true
class Report < ApplicationRecord
2024-11-11 04:04:13 +01:00
has_many :pages, -> { order(:position) }, dependent: :destroy
2024-10-31 23:13:18 +01:00
has_many :elements, through: :pages, dependent: :destroy
has_rich_text :comment
2024-07-20 16:52:12 +02:00
validates :name, presence: true
end