Rails automation

Hello, I need to update some records (with data based on other records) in database everyday at for example 11 p.m. Is there a chance to automate this with rails?
I’m using postgresql.

You can write a rake task to do the job, then run it daily using cron.

Colin