db: Remove report_v4 from account defaults

This commit is contained in:
aakashb95 2026-05-01 02:44:59 +05:30
parent 276e2c5f16
commit 0deb37bd4e

View File

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