diff options
Diffstat (limited to 'script')
-rwxr-xr-x | script/delete-old-sessions | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/script/delete-old-sessions b/script/delete-old-sessions new file mode 100755 index 000000000..0e4c91122 --- /dev/null +++ b/script/delete-old-sessions @@ -0,0 +1,8 @@ +#!/bin/bash + +LOC=`dirname $0` + +$LOC/runner 'PostRedirect.delete_old_post_redirects()' +$LOC/runner "ActiveRecord::Base.connection.execute(\"delete from sessions where now() - updated_at > '1 month'\")" + + |