このコミットが含まれているのは:
2025-02-27 23:38:45 +09:00
コミット 137c86bba7
18個のファイルの変更156行の追加31行の削除
+2
ファイルの表示
@@ -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