mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 15:19:44 +08:00
10 lines
262 B
Ruby
10 lines
262 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class MigrateDmChannels < ActiveRecord::Migration[7.0]
|
||
|
def up
|
||
|
DB.exec(
|
||
|
"UPDATE chat_channels SET type='DirectMessageChannel', chatable_type='DirectMessage' WHERE chatable_type = 'DirectMessageChannel'",
|
||
|
)
|
||
|
end
|
||
|
end
|