このコミットが含まれているのは:
2025-05-20 23:59:14 +09:00
コミット 09ed1c493a
3個のファイルの変更12行の追加2行の削除
+1 -1
ファイルの表示
@@ -1,6 +1,6 @@
class Post < ApplicationRecord
belongs_to :parent, class_name: 'Post', optional: true, foreign_key: 'parent_id'
belongs_to :user, foreign_key: ''
belongs_to :uploaded_user, class_name: 'User', optional: true
has_many :post_tags, dependent: :destroy
has_many :tags, through: :post_tags
has_many :user_post_views, dependent: :destroy