Skip to content

Instantly share code, notes, and snippets.

@vito-lbs
Created Oct 6, 2015
Embed
What would you like to do?
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