a11yist/app/models/project.rb

8 lines
180 B
Ruby
Raw Permalink Normal View History

2024-11-24 22:08:36 +01:00
class Project < ApplicationRecord
has_many :reports, dependent: :restrict_with_error
has_rich_text :details
scope :current, -> { where("updated_at > ?", 1.month.ago) }
end