diff --git a/app/models/post_flag_type.rb b/app/models/post_flag_type.rb
index 4731ee12bf69f5c046e4b8feedd5563241e210e9..00bed5ce46cf9ccb5a5c751d58bff73d32a61eda 100644
--- a/app/models/post_flag_type.rb
+++ b/app/models/post_flag_type.rb
@@ -1,6 +1,8 @@
 class PostFlagType < ApplicationRecord
   include CommunityRelated
 
+  belongs_to :post_type, optional: true
+
   validates :name, uniqueness: { scope: [:community_id], case_sensitive: false }
 
   scope :not_confidential, -> { where(confidential: false) }