#2 ぼちぼち

This commit is contained in:
2025-02-27 23:38:45 +09:00
parent c6deba7c26
commit 137c86bba7
18 changed files with 156 additions and 31 deletions
+2
View File
@@ -1,2 +1,4 @@
class Post < ApplicationRecord
belongs_to :parent, class_name: 'Post', optional: true, foreign_key: 'parent_id'
belongs_to :user, foreign_key: ''
end