Browse Source
considering this is a very dangerous script best not to leave the name slightly ambiguous (since it deletes from the given year and before)CLDC-4313-resolve-unhandled-errors-on-large-numbers-in-numeric-fields^2
1 changed files with 1 additions and 1 deletions
@ -1,5 +1,5 @@
|
||||
desc "Deletes all logs in a given collection year and earlier. Note that this operation is PERMANENT and this will bypass callbacks/paper trail. Use only as instructed in a yearly cleanup task." |
||||
task :delete_logs_before_year, %i[year] => :environment do |_task, args| |
||||
task :delete_logs_in_collection_year_and_earlier, %i[year] => :environment do |_task, args| |
||||
year = args[:year].to_i |
||||
|
||||
if year < 2020 |
||||
Loading…
Reference in new issue