Update student survey responses for the 2018-19 school year

This commit is contained in:
Nelson Jovel 2022-04-11 10:31:11 -07:00
parent fe319a51b3
commit a8507d817c
4 changed files with 26 additions and 4 deletions

View file

@ -45,9 +45,9 @@ namespace :one_off do
measure_4aii.update! measure_id: '4A-i'
end
desc 'load boston 2018-19 responses'
task load_boston_2018_19_responses: :environment do
filepath = Rails.root.join('data', 'survey_responses', '2018-19_boston_student_survey_responses.csv')
desc 'load 2018-19 student responses'
task load_2018_19_student_responses: :environment do
filepath = Rails.root.join('data', 'survey_responses', '2018-19_student_survey_responses.csv')
puts "=====================> Loading data from csv at path: #{filepath}"
SurveyResponsesDataLoader.load_data filepath: filepath
puts "=====================> Completed loading #{SurveyItemResponse.count} survey responses"