mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Add topic_hot_score association to topic.rb (#30795)
We have the other side of this association wired up --
da72ad4ecd/app/models/topic_hot_score.rb (L4)
This commit simply adds the association to `Topic` model so we can
reference the hot score.
This commit is contained in:
parent
da72ad4ecd
commit
a647031171
@ -286,6 +286,7 @@ class Topic < ActiveRecord::Base
|
|||||||
dependent: :destroy
|
dependent: :destroy
|
||||||
|
|
||||||
has_one :top_topic
|
has_one :top_topic
|
||||||
|
has_one :topic_hot_score
|
||||||
has_one :shared_draft, dependent: :destroy
|
has_one :shared_draft, dependent: :destroy
|
||||||
has_one :published_page
|
has_one :published_page
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user