Arthur Campbell
1 year ago
1 changed files with 5 additions and 0 deletions
@ -0,0 +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).update_all(creation_method: "bulk upload") |
||||||
|
SalesLog.where.not(bulk_upload_id: nil).update_all(creation_method: "bulk upload") |
||||||
|
end |
Loading…
Reference in new issue