Remove unnecessary relations and scopes in ProjectSnippet

parent 9a714d7f
......@@ -2,13 +2,6 @@
class ProjectSnippet < Snippet
belongs_to :project
belongs_to :author, class_name: "User"
validates :project, presence: true
# Scopes
scope :fresh, -> { order("created_at DESC") }
participant :author
participant :notes_with_associations
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment