discourse/plugins/chat/db/migrate/20220203204002_create_chat_drafts_table.rb
Roman Rizzi 0a5f548635
DEV: Move discourse-chat to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
2022-11-02 10:41:30 -03:00

13 lines
293 B
Ruby

# frozen_string_literal: true
class CreateChatDraftsTable < ActiveRecord::Migration[6.1]
def change
create_table :chat_drafts do |t|
t.integer :user_id, null: false
t.integer :chat_channel_id, null: false
t.text :data, null: false
t.timestamps
end
end
end