mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 13:09:33 -06:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
15 lines
363 B
Ruby
15 lines
363 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateChatMessageRevisions < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :chat_message_revisions do |t|
|
|
t.integer :chat_message_id
|
|
t.text :old_message, null: false
|
|
t.text :new_message, null: false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :chat_message_revisions, [:chat_message_id]
|
|
end
|
|
end
|