mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
working on reverse questions
This commit is contained in:
parent
8d885b6612
commit
5a1426ceb7
1 changed files with 5 additions and 3 deletions
|
|
@ -5,8 +5,10 @@
|
|||
# rails c -> SchoolCategory.update_all(year: '2017')
|
||||
# rake data:load_questions_csv; rake data:load_responses
|
||||
|
||||
# sudo heroku pg:reset DATABASE -a mciea-beta
|
||||
# sudo heroku pg:backups:restore 'https://s3.amazonaws.com/irrationaldesign/latest.dump' DATABASE_URL -a mciea-beta
|
||||
# sudo heroku run rake db:migrate -a mciea-beta
|
||||
# sudo heroku run console -a mciea-beta
|
||||
# sudo heroku run console -a mciea-beta -> SchoolCategory.update_all(year: '2017')
|
||||
# sudo heroku run rake data:load_questions_csv -a mciea-beta
|
||||
# sudo heroku run:detached rake data:load_responses -a mciea-beta --size performance-l
|
||||
|
||||
|
|
@ -155,7 +157,7 @@ namespace :data do
|
|||
option5: question['R5'],
|
||||
for_recipient_students: question['Level'] == "Students",
|
||||
external_id: question['qid'],
|
||||
reverse: question['reverse'] == "1"
|
||||
reverse: question['Reverse'] == "1"
|
||||
)
|
||||
else
|
||||
variations.each do |variation|
|
||||
|
|
@ -168,7 +170,7 @@ namespace :data do
|
|||
option5: question['R5'],
|
||||
for_recipient_students: question['Level'] == "Students",
|
||||
external_id: question['qid'],
|
||||
reverse: question['reverse'] == "1"
|
||||
reverse: question['Reverse'] == "1"
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue