class Project < ApplicationRecord has_many :reports, dependent: :restrict_with_error has_rich_text :details scope :current, -> { where("updated_at > ?", 1.month.ago) } end