module Phcmembers class Directory::Category < ApplicationRecord # Add Paper Trail has_paper_trail # Model Relationships has_many :categorylistings, class_name: 'Phcmembers::Directory::Categorylisting', dependent: :destroy has_many :listings, class_name: 'Phcmembers::Member::Listing', :through => :categorylistings end end