mirror of
https://github.com/discourse/discourse.git
synced 2025-02-14 23:35:00 +00:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
11 lines
318 B
Ruby
11 lines
318 B
Ruby
# frozen_string_literal: true
|
|
|
|
class MigrateChatChannels < ActiveRecord::Migration[7.0]
|
|
def up
|
|
DB.exec("UPDATE chat_channels SET type='CategoryChannel' WHERE chatable_type = 'Category'")
|
|
DB.exec(
|
|
"UPDATE chat_channels SET type='DMChannel' WHERE chatable_type = 'DirectMessageChannel'",
|
|
)
|
|
end
|
|
end
|