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