mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
minor cleanup, using AR querying DSL over raw SQL in some places
This commit is contained in:
@@ -2,7 +2,6 @@ require_dependency 'discourse'
|
||||
require 'ipaddr'
|
||||
|
||||
class TopicLinkClick < ActiveRecord::Base
|
||||
|
||||
belongs_to :topic_link, counter_cache: :clicks
|
||||
belongs_to :user
|
||||
|
||||
@@ -54,5 +53,4 @@ class TopicLinkClick < ActiveRecord::Base
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user