mirror of
https://github.com/chatwoot/chatwoot.git
synced 2026-06-13 21:01:16 +08:00
db: Remove report_v4 from account defaults
This commit is contained in:
parent
276e2c5f16
commit
0deb37bd4e
@ -4,5 +4,12 @@ class RepurposeReportV4FlagForCaptainV1ActionClassifier < ActiveRecord::Migratio
|
||||
account.disable_features(:captain_v1_action_classifier)
|
||||
account.save!(validate: false)
|
||||
end
|
||||
|
||||
config = InstallationConfig.find_by(name: 'ACCOUNT_LEVEL_FEATURE_DEFAULTS')
|
||||
return if config&.value.blank?
|
||||
|
||||
config.value = config.value.reject { |feature| feature['name'] == 'report_v4' }
|
||||
config.save!
|
||||
GlobalConfig.clear_cache
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user