Last active
August 31, 2017 19:58
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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