Skip to content

Instantly share code, notes, and snippets.

@itsaliu90
Last active September 25, 2018 21:00
Show Gist options
  • Select an option

  • Save itsaliu90/9ea4d0ce8cf5adf6f9d71485ba103810 to your computer and use it in GitHub Desktop.

Select an option

Save itsaliu90/9ea4d0ce8cf5adf6f9d71485ba103810 to your computer and use it in GitHub Desktop.
ps_single_cp_split
i="[cp_id]"
echo "splitting care provider: $i"
echo "splitting care provider: $i" >> /var/www/banff/patient_splitting_output.log
date >> /var/www/banff/patient_splitting_output.log
bin/rake "migrate:split_patients[$i]" >> /var/www/banff/patient_splitting_output.log
echo "done" >> /var/www/banff/patient_splitting_output.log
echo "" >> /var/www/banff/patient_splitting_output.log
echo "" >> /var/www/banff/patient_splitting_output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment