I am using whenever gem to run rake tasks. My code in schedule.rb is as follow.
every 1.day, :at => '11:00 am' do
rake "notifications:run_mailer"
end
Above code is executing the rake task on 11am of every day. Now i want to change this. I want to run this rake task based on a table column. For that i have created a table called scheduler.rb and a column run_at. based on run_at column date and time i need to run that rake task. How to do that?