DEV: Fix chat_allowed_groups migration (#19163)

Follow-up to 0c1e5a76ee
This commit is contained in:
Martin Brennan 2022-11-23 15:28:12 +10:00 committed by GitHub
parent c9ab270abd
commit 1dadf4381f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.