mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 09:03:40 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
24 lines
582 B
Ruby
24 lines
582 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ChatMention < ActiveRecord::Base
|
|
belongs_to :user
|
|
belongs_to :chat_message
|
|
belongs_to :notification
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: chat_mentions
|
|
#
|
|
# id :bigint not null, primary key
|
|
# chat_message_id :integer not null
|
|
# user_id :integer not null
|
|
# notification_id :integer not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# chat_mentions_index (chat_message_id,user_id,notification_id) UNIQUE
|
|
#
|