ref: master
debian/dbupgrade
#!/bin/sh set -e cd /usr/share/noosfero && su noosfero -c "rake db:migrate RAILS_ENV=production SCHEMA=/dev/null"