mirror of
https://github.com/discourse/discourse.git
synced 2024-12-13 00:43:44 +08:00
25138db433
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
|