From a647031171d1d03ffd4a3e7be329fe94785a8720 Mon Sep 17 00:00:00 2001 From: Mark VanLandingham Date: Wed, 15 Jan 2025 10:14:33 -0600 Subject: [PATCH] DEV: Add topic_hot_score association to topic.rb (#30795) We have the other side of this association wired up -- https://github.com/discourse/discourse/blob/da72ad4ecddffc837cd9ec82624f51bbc22c6fc4/app/models/topic_hot_score.rb#L4 This commit simply adds the association to `Topic` model so we can reference the hot score. --- app/models/topic.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/topic.rb b/app/models/topic.rb index 40e22fb82a6..3c602f2f0f8 100644 --- a/app/models/topic.rb +++ b/app/models/topic.rb @@ -286,6 +286,7 @@ class Topic < ActiveRecord::Base dependent: :destroy has_one :top_topic + has_one :topic_hot_score has_one :shared_draft, dependent: :destroy has_one :published_page