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.