A platform for community discussion. Free, open, simple.
DEV: Fix chat_allowed_groups migration (#19163)
Martin Brennan1dadf4381fe9
diff --git a/plugins/chat/db/migrate/20221122070108_save_chat_allowed_groups_site_setting.rb b/plugins/chat/db/migrate/20221122070108_save_chat_allowed_groups_site_setting.rbindex cfeabbc6a4d..32d446ffc2d 100644--- a/plugins/chat/db/migrate/20221122070108_save_chat_allowed_groups_site_setting.rb+++ b/plugins/chat/db/migrate/20221122070108_save_chat_allowed_groups_site_setting.rb@@ -6,7 +6,7 @@ class SaveChatAllowedGroupsSiteSetting < ActiveRecord::Migration[7.0]return if chat_enabled.blank?chat_allowed_groups = DB.query_single("SELECT value FROM site_settings WHERE name = 'chat_allowed_groups'")- return if chat_allowed_groups.blank?+ return if chat_allowed_groups.present?# The original default was auto group ID 3 (staff) so we are# using that here.