mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-26 14:00:42 +08:00
26 lines
567 B
Ruby
Vendored
26 lines
567 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module DiscourseTopicVoting
|
|
class Vote < ActiveRecord::Base
|
|
self.table_name = "topic_voting_votes"
|
|
|
|
belongs_to :user
|
|
belongs_to :topic
|
|
end
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: topic_voting_votes
|
|
#
|
|
# id :bigint not null, primary key
|
|
# topic_id :integer
|
|
# user_id :integer
|
|
# archive :boolean default(FALSE)
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# topic_voting_votes_user_id_topic_id_idx (user_id,topic_id) UNIQUE
|
|
#
|