Browse Source

fixup! CLDC-4157: Add a helper script to mark impacted schemes & logs as incomplete

correct script name
CLDC-4157-remove-nursing-care-from-scheme-support
samyou-softwire 1 week ago
parent
commit
00c70089c3
  1. 2
      lib/tasks/update_schemes_logs_impacted_by_nursing_level_removal.rake

2
lib/tasks/update_schemes_logs_impacted_by_nursing_level_removal.rake

@ -1,5 +1,5 @@
desc "Update schemes that had a level of support of 'Nursing' to be incomplete, and mark all logs that use that scheme as incomplete"
task update_scheme_registered_under_care_value: :environment do
task update_schemes_logs_impacted_by_nursing_level_removal: :environment do
ActiveRecord::Base.transaction do
impacted_schemes = Scheme.where(support_type: 5)
impacted_logs = LettingsLog.filter_by_year_or_later(2025).where(scheme: impacted_schemes)

Loading…
Cancel
Save