]> git.openstreetmap.org Git - rails.git/blobdiff - script/cleanup
Replace timecop with the rails builtin travel_to method
[rails.git] / script / cleanup
index d7f29239c70a57c0007adff01a64a4e1a242b0f2..3eaeef7c6a739efa50ddb71f930cbb22c1869094 100755 (executable)
@@ -3,5 +3,6 @@
 require File.dirname(__FILE__) + "/../config/environment"
 
 UserToken.delete_all("expiry < NOW()")
 require File.dirname(__FILE__) + "/../config/environment"
 
 UserToken.delete_all("expiry < NOW()")
+OauthNonce.delete_all("timestamp < EXTRACT(EPOCH FROM NOW() - INTERVAL '1 day')")
 
 exit 0
 
 exit 0