Project

General

Profile

Bug #310 » 0001-Fixed-extras-dbmigrate-to-actually-do-something.patch

Jochen Schalanda, 06/07/2010 12:47 PM

View differences:

extras/dbmigrate
WANTED_USER=${1:-'foreman'}
if [ $USERNAME = $WANTED_USER ]; then
cd && echo /usr/bin/rake db:migrate RAILS_ENV=production
cd && /usr/bin/rake db:migrate RAILS_ENV=production
else
echo "$0 has to be run as user ${WANTED_USER}!"
exit 1
(1-1/3)