#2 ぼちぼち
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user