discourse/plugins/chat/app/models/chat_webhook_event.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
685 B
Ruby
Raw Normal View History

# 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
#