mirror of
https://ghfast.top/https://github.com/discourse/discourse-topic-voting.git
synced 2026-07-17 11:37:03 +08:00
26 lines
588 B
Ruby
26 lines
588 B
Ruby
# frozen_string_literal: true
|
|
|
|
module DiscourseTopicVoting
|
|
class Vote < ActiveRecord::Base
|
|
self.table_name = "discourse_voting_votes"
|
|
|
|
belongs_to :user
|
|
belongs_to :topic
|
|
end
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: discourse_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
|
|
#
|
|
# index_discourse_voting_votes_on_user_id_and_topic_id (user_id,topic_id) UNIQUE
|
|
#
|