You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
597 B
13 lines
597 B
1 year ago
|
desc "Forces to recalculate refused values for lettings logs with unknown person details"
|
||
|
task recalculate_refused_values: :environment do
|
||
|
LettingsLog.exportable.where('details_known_2 = 1
|
||
|
OR details_known_3 = 1
|
||
|
OR details_known_4 = 1
|
||
|
OR details_known_5 = 1
|
||
|
OR details_known_6 = 1
|
||
|
OR details_known_7 = 1
|
||
|
OR details_known_8 = 1').each do |log|
|
||
|
log.update!(values_updated_at: Time.zone.now)
|
||
|
end
|
||
|
end
|