Browse Source
upload id now decided to be a better indicator of bulk upload status, import service amended accordingly tests updated in line with thispull/1744/head
6 changed files with 12 additions and 10 deletions
@ -1,5 +1,5 @@ |
|||||||
desc "set creation method to bulk upload if a log has a bulk upload id" |
desc "set creation method to bulk upload if a log has a bulk upload id" |
||||||
task set_creation_method: :environment do |
task set_creation_method: :environment do |
||||||
LettingsLog.where.not(bulk_upload_id: nil).each(&:creation_method_bulk_upload!) |
LettingsLog.where.not(bulk_upload_id: nil).find_each(&:creation_method_bulk_upload!) |
||||||
SalesLog.where.not(bulk_upload_id: nil).each(&:creation_method_bulk_upload!) |
SalesLog.where.not(bulk_upload_id: nil).find_each(&:creation_method_bulk_upload!) |
||||||
end |
end |
||||||
|
|||||||
Loading…
Reference in new issue