discourse/plugins/chat/app/models/chat_webhook_event.rb
Roman Rizzi 0a5f548635
DEV: Move discourse-chat to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
2022-11-02 10:41:30 -03:00

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
#