2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00
discourse/db/migrate/20240731143458_remove_chat_default_channel_id.rb
Gabriel Grubba 633a19fcc0
FIX: Remove chat default channel setting (#28170)
* FIX: Remove chat default channel being applied to mobile chat and drawer

* DEV: removing chat_default_channel_id setting

* DEV: add migration to remove chat default channel id

* DEV: remove default_channel_validator and tests
2024-07-31 14:12:10 -03:00

10 lines
256 B
Ruby

# frozen_string_literal: true
class RemoveChatDefaultChannelId < ActiveRecord::Migration[7.1]
def up
execute "DELETE FROM site_settings WHERE name = 'chat_default_channel_id'"
end
def down
raise ActiveRecord::IrreversibleMigration
end
end