I have defined a rake task to work on the 15th and last day of the month at 8 am in schedule.rb file. I just wanted to confirm if I have done it the right way. Please have a look and suggest it.
run this task at 8am on 15th of every month
every '0 8 15 * *' do
rake 'office:reminder', environment: ENV['RAILS_ENV']
end
run this task at 8am on the last day of every month
every '0 8 28-31 * *' do
rake 'office:reminder', environment: ENV['RAILS_ENV']
end