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`.
18 lines
445 B
Ruby
18 lines
445 B
Ruby
# frozen_string_literal: true
|
|
class CreateIncomingChatWebhooks < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :incoming_chat_webhooks do |t|
|
|
t.string :name, null: false
|
|
t.string :key, null: false
|
|
t.integer :chat_channel_id, null: false
|
|
t.string :username
|
|
t.string :description
|
|
t.string :emoji
|
|
|
|
t.timestamps
|
|
end
|
|
|
|
add_index :incoming_chat_webhooks, %i[key chat_channel_id]
|
|
end
|
|
end
|