Skip to content

Instantly share code, notes, and snippets.

@debborafernandess
Last active August 31, 2017 19:58
Show Gist options
  • Save debborafernandess/1419aa7ec9b47e1262e6f117ba7519a0 to your computer and use it in GitHub Desktop.
Save debborafernandess/1419aa7ec9b47e1262e6f117ba7519a0 to your computer and use it in GitHub Desktop.
Atualiza os dias de free days de acordo com o expires_at da PurchaseAddon
purchase_addons = PurchaseAddon.where.not(free_days_expired_at: nil)
purchase_addons.update_all(free_days: 30)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment