Rails 5 scheduler to update database once a day
问题 I'm new to rails and want to run a batch file/schedule task daily once at midnight that checks which entries have expired. Every record in the table has a closing_date and after that time, such records must be inactive.(status active=false on DB). so basically it will run 2 SQL queries to fetch all records and then flag another field to inactive for records that are outdated.I'm working with Rails 5. How should I go about this-gem(rufus,whatever,clockwork or any other gem) or simply some