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`.
25 lines
685 B
Ruby
25 lines
685 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ChatWebhookEvent < ActiveRecord::Base
|
|
belongs_to :chat_message
|
|
belongs_to :incoming_chat_webhook
|
|
|
|
delegate :username, to: :incoming_chat_webhook
|
|
delegate :emoji, to: :incoming_chat_webhook
|
|
end
|
|
|
|
# == Schema Information
|
|
#
|
|
# Table name: chat_webhook_events
|
|
#
|
|
# id :bigint not null, primary key
|
|
# chat_message_id :integer not null
|
|
# incoming_chat_webhook_id :integer not null
|
|
# created_at :datetime not null
|
|
# updated_at :datetime not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# chat_webhook_events_index (chat_message_id,incoming_chat_webhook_id) UNIQUE
|
|
#
|