2022-11-02 09:41:30 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class ChatMessageRevision < ActiveRecord::Base
|
|
|
|
belongs_to :chat_message
|
2022-11-06 18:04:47 -05:00
|
|
|
belongs_to :user
|
2022-11-02 09:41:30 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
# == Schema Information
|
|
|
|
#
|
|
|
|
# Table name: chat_message_revisions
|
|
|
|
#
|
|
|
|
# id :bigint not null, primary key
|
|
|
|
# chat_message_id :integer
|
|
|
|
# old_message :text not null
|
|
|
|
# new_message :text not null
|
|
|
|
# created_at :datetime not null
|
|
|
|
# updated_at :datetime not null
|
2022-11-07 18:06:13 -05:00
|
|
|
# user_id :integer not null
|
2022-11-02 09:41:30 -04:00
|
|
|
#
|
|
|
|
# Indexes
|
|
|
|
#
|
|
|
|
# index_chat_message_revisions_on_chat_message_id (chat_message_id)
|
2022-11-06 18:04:47 -05:00
|
|
|
# index_chat_message_revisions_on_user_id (user_id)
|
2022-11-02 09:41:30 -04:00
|
|
|
#
|