Close votes automatically after 7 days

Closes #1
This commit is contained in:
ricola 2025-06-08 15:57:26 -06:00
parent cac94c2379
commit e474a9a8ea
14 changed files with 283 additions and 97 deletions

9
config/schedule.rb Normal file
View file

@ -0,0 +1,9 @@
if ENV['RAILS_ENV']
set :environment, ENV['RAILS_ENV']
end
set :output, 'vedia.log'
every 5.minutes do
rake "close_expired_votes"
end