|
|
|
@ -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" |
|
|
|
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 |
|
|
|
ActiveRecord::Base.transaction do |
|
|
|
impacted_schemes = Scheme.where(support_type: 5) |
|
|
|
impacted_schemes = Scheme.where(support_type: 5) |
|
|
|
impacted_logs = LettingsLog.filter_by_year_or_later(2025).where(scheme: impacted_schemes) |
|
|
|
impacted_logs = LettingsLog.filter_by_year_or_later(2025).where(scheme: impacted_schemes) |
|
|
|
|