discourse/plugins/chat/db/migrate/20221027090832_migrate_dm_c...

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