mirror of
https://github.com/discourse/discourse.git
synced 2024-11-28 07:33:40 +08:00
4116094e54
Follow up to 766bcbc684
Makes ChatMessage.last_editor_id and ChatMessageRevision.user_id
NOT NULL since they are always filled in now and the last commit
had a migration to backfill this data.
25 lines
659 B
Ruby
25 lines
659 B
Ruby
# frozen_string_literal: true
|
|
|
|
class ChatMessageRevision < ActiveRecord::Base
|
|
belongs_to :chat_message
|
|
belongs_to :user
|
|
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
|
|
# user_id :integer not null
|
|
#
|
|
# Indexes
|
|
#
|
|
# index_chat_message_revisions_on_chat_message_id (chat_message_id)
|
|
# index_chat_message_revisions_on_user_id (user_id)
|
|
#
|