3 changed files with 25 additions and 2 deletions
@ -0,0 +1,5 @@
|
||||
desc "Recalculate vacdays after bugfix for daylight savings time changes" |
||||
task recalculate_vacdays: :environment do |
||||
logs = LettingsLog.filter_by_years(%w[2023 2024]).where.not(vacdays: nil) |
||||
logs.each(&:save!) |
||||
end |
||||
Loading…
Reference in new issue