mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 03:07:52 +01:00
Add comments controller and routes
This commit is contained in:
@@ -2,6 +2,7 @@ class Post < ApplicationRecord
|
||||
belongs_to :board
|
||||
belongs_to :user
|
||||
belongs_to :post_status, optional: true
|
||||
has_many :comments
|
||||
|
||||
validates :title, presence: true, length: { in: 4..64 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user