codemy/writefully

View on GitHub
app/models/comment.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Comment < ApplicationRecord
  belongs_to :post, counter_cache: true
  belongs_to :user

  validates_presence_of :user
end