Added projects
This commit is contained in:
parent
0964187f22
commit
8b4ffb83ec
37 changed files with 470 additions and 1935 deletions
7
app/models/project.rb
Normal file
7
app/models/project.rb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
class Project < ApplicationRecord
|
||||
has_many :reports, dependent: :restrict_with_error
|
||||
|
||||
has_rich_text :details
|
||||
|
||||
scope :current, -> { where("updated_at > ?", 1.month.ago) }
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue