mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 10:39:27 +08:00

This commit promotes all post_deploy migrations which existed in Discourse v3.0.0 (timestamp <= 20221212234948)
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
|