lib/tasks/deployment/20231122132353_backfill_transport_observations.rake
namespace :after_party do
desc 'Deployment task: backfill_transport_observations'
task backfill_transport_observations: :environment do
puts "Running deploy task 'backfill_transport_observations'"
TransportSurvey.all.find_each(&:add_observation)
# Update task as completed. If you remove the line below, the task will
# run with every deploy (or every time you call after_party:run).
AfterParty::TaskRecord
.create version: AfterParty::TaskRecorder.new(__FILE__).timestamp
end
end