Created
October 6, 2015 03:14
-
-
Save vito-lbs/972814998503b92f700b 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
ActiveRecord::Base.connection_pool.with_connection do | |
Nonce.where('expires_at < ?', Time.now).delete_all rescue nil | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment