a11yist/app/models/report.rb
david 5e0539d7c6
Some checks failed
/ Run tests (push) Successful in 1m37s
/ Build, push and deploy image (push) Successful in 1m25s
/ Run system tests (push) Has been cancelled
First step of online html export
2024-11-11 20:19:52 +01:00

9 lines
251 B
Ruby

# frozen_string_literal: true
class Report < ApplicationRecord
has_many :pages, -> { order(:position) }, dependent: :destroy
has_many :elements, through: :pages, dependent: :destroy
has_rich_text :comment
validates :name, presence: true
end