Files
discourse/plugins/chat/app/models/chat/message_custom_field.rb
Sam e7f62ab52b FEATURE: add custom fields to chat (channel/message/thread) (#29504)
This allows various extensions to store extra information the 3 most popular
chat entities

Useful for certain plugins and migrations
2024-11-01 09:12:19 +11:00

24 lines
545 B
Ruby

# frozen_string_literal: true
module Chat
class MessageCustomField < ActiveRecord::Base
belongs_to :message
end
end
# == Schema Information
#
# Table name: chat_message_custom_fields
#
# id :bigint not null, primary key
# message_id :bigint not null
# name :string(256) not null
# value :string(1000000)
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_chat_message_custom_fields_on_message_id_and_name (message_id,name) UNIQUE
#