Skip to main content

How to manually cancel UBP user or make it free

Step-by-step implementation​

  1. Run rails console in production/staging/local
  2. Find subscription on db that you want to downgrade
  3. s = ProSubscription.find(id)
  4. s.update({to_downgrade_at: nil, active: false}) - deactivate subscription
  5. s.user.downgrade_apps_to_free(nil, 'v_250')
  6. include UsageBasedHelper
  7. reset_user_apps_block(s.user.id, 'v_250') - reset user's ubp radis cache

#cancel, #ubp, #v_250