Browse Source

revert updating creation method in rake task with update all

pull/1783/head
Arthur Campbell 3 years ago
parent
commit
b9ed4a564f
  1. 4
      lib/tasks/creation_method.rake

4
lib/tasks/creation_method.rake

@ -1,5 +1,5 @@
desc "set creation method to bulk upload if a log has a bulk upload id"
task set_creation_method: :environment do
LettingsLog.where.not(bulk_upload_id: nil).find_each(&:creation_method_bulk_upload!)
SalesLog.where.not(bulk_upload_id: nil).find_each(&:creation_method_bulk_upload!)
LettingsLog.where.not(bulk_upload_id: nil).update_all(creation_method: 2)
SalesLog.where.not(bulk_upload_id: nil).update_all(creation_method: 2)
end

Loading…
Cancel
Save