mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 16:36:03 +08:00
23 lines
516 B
Ruby
23 lines
516 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ChatMessageReaction < ActiveRecord::Base
|
||
|
belongs_to :chat_message
|
||
|
belongs_to :user
|
||
|
end
|
||
|
|
||
|
# == Schema Information
|
||
|
#
|
||
|
# Table name: chat_message_reactions
|
||
|
#
|
||
|
# id :bigint not null, primary key
|
||
|
# chat_message_id :integer
|
||
|
# user_id :integer
|
||
|
# emoji :string
|
||
|
# created_at :datetime not null
|
||
|
# updated_at :datetime not null
|
||
|
#
|
||
|
# Indexes
|
||
|
#
|
||
|
# chat_message_reactions_index (chat_message_id,user_id,emoji) UNIQUE
|
||
|
#
|