diff --git a/lib/tasks/correct_value_and_mortgage_for_2025_sales_logs.rake b/lib/tasks/correct_value_and_mortgage_for_2025_or_later_sales_logs.rake similarity index 88% rename from lib/tasks/correct_value_and_mortgage_for_2025_sales_logs.rake rename to lib/tasks/correct_value_and_mortgage_for_2025_or_later_sales_logs.rake index 5199ea8ef..f7ec317e8 100644 --- a/lib/tasks/correct_value_and_mortgage_for_2025_sales_logs.rake +++ b/lib/tasks/correct_value_and_mortgage_for_2025_or_later_sales_logs.rake @@ -1,5 +1,5 @@ desc "Clears mortgage and purchase price (the 'value' field) values for sales logs in the database if they are over 999,999" -task correct_value_and_mortgage_for_2025_sales_logs: :environment do +task correct_value_and_mortgage_for_2025_or_later_sales_logs: :environment do mortgage_incorrect_logs = SalesLog.filter_by_year_or_later(2025).where("mortgage > 999999") value_incorrect_logs = SalesLog.filter_by_year_or_later(2025).where("value > 999999") all_incorrect_logs = (mortgage_incorrect_logs + value_incorrect_logs).uniq