HeavyTechRuby/history

View on GitHub
app/models/comment.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
class Comment < ApplicationRecord
  belongs_to :story

  validates :body, presence: true
  validates :body, length: { in: 10..255 }
end