mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 18:35:17 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
14 lines
334 B
Ruby
14 lines
334 B
Ruby
# frozen_string_literal: true
|
|
|
|
class CreateChatUploads < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :chat_uploads do |t|
|
|
t.integer :chat_message_id, null: false
|
|
t.integer :upload_id, null: false
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :chat_uploads, %i[chat_message_id upload_id], unique: true
|
|
end
|
|
end
|