Changed a few ActiveRecord associations.
Added upvoted_topics relation to user.