From d8c884a8560f82d78aa5cb566ff17175c91b15d3 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Mon, 27 Apr 2020 12:42:13 -0500 Subject: [PATCH] DEV: Add has_many category_tag_stats in tag.rb (#9558) --- app/models/tag.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/tag.rb b/app/models/tag.rb index 2d695c3521d..825b90d8adb 100644 --- a/app/models/tag.rb +++ b/app/models/tag.rb @@ -28,6 +28,7 @@ class Tag < ActiveRecord::Base has_many :topic_tags, dependent: :destroy has_many :topics, through: :topic_tags + has_many :category_tag_stats, dependent: :destroy has_many :category_tags, dependent: :destroy has_many :categories, through: :category_tags