I have a “raw” SQL statement that I need to execute in order to update status of objects (something like UPDATE users SET status=1 WHERE <some conditions>.
I need this to always run after every 60 seconds in the background.
How do I do this?
Ps. The environment is Ubuntu 10.10 and Rails 3.0.3
You’ll have to use a cron (crontab) to periodically call a Rail script doing this update.