class FaqCategory < Faq
  belongs_to :faq_category, class_name: "FaqCategory", foreign_key: "parent_id"
  has_many :faq_posts, class_name: "FaqPost", foreign_key: "parent_id", dependent: :destroy
  validates_presence_of :title, :slug, :parent_id, :display_order
end