]> git.openstreetmap.org Git - rails.git/blobdiff - script/cleanup
Update translation keys for renaming of user to users
[rails.git] / script / cleanup
index 3eaeef7c6a739efa50ddb71f930cbb22c1869094..10fdf9db7328dc1a3c1db8105d9345c0c42397d7 100755 (executable)
@@ -2,7 +2,7 @@
 
 require File.dirname(__FILE__) + "/../config/environment"
 
 
 require File.dirname(__FILE__) + "/../config/environment"
 
-UserToken.delete_all("expiry < NOW()")
-OauthNonce.delete_all("timestamp < EXTRACT(EPOCH FROM NOW() - INTERVAL '1 day')")
+UserToken.where("expiry < NOW()").delete_all
+OauthNonce.where("timestamp < EXTRACT(EPOCH FROM NOW() - INTERVAL '1 day')").delete_all
 
 exit 0
 
 exit 0