Created
October 12, 2018 10:18
-
-
Save tom-lord/45bca0ccf036d809943a27a4130c8872 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| class LeaseDeal < ApplicationRecord | |
| def self.expire_all(time: Time.current) | |
| update_all(expired_at: time) | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment