mirror of
https://github.com/astuto/astuto.git
synced 2025-12-16 03:37:56 +01:00
Add basic version of Comments component
This commit is contained in:
@@ -5,4 +5,6 @@ class Comment < ApplicationRecord
|
||||
has_many :children, class_name: 'Comment', foreign_key: 'parent_id', dependent: :destroy
|
||||
|
||||
validates :body, presence: true, length: { minimum: 4 }
|
||||
|
||||
paginates_per 15
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user