Skip to content

A platform for community discussion. Free, open, simple.

702 B
Raw Blame
# frozen_string_literal: true

module DiscourseTopicVoting
  class TopicVoteCount < ActiveRecord::Base
    self.table_name = "topic_voting_topic_vote_count"

    belongs_to :topic, -> { with_deleted }
  end
end

# == Schema Information
#
# Table name: topic_voting_topic_vote_count
#
#  id          :bigint           not null, primary key
#  votes_count :integer
#  created_at  :datetime         not null
#  updated_at  :datetime         not null
#  topic_id    :integer
#
# Indexes
#
#  index_topic_voting_topic_vote_count_on_topic_id     (topic_id) UNIQUE
#  index_topic_voting_topic_vote_count_on_votes_count  (votes_count)
#  topic_voting_topic_vote_count_topic_id_idx          (topic_id) UNIQUE
#