if diff -qrN ".*/deploy/current/db/migrate" "\./db/migrate" 2>/dev/null then echo "-----> DB migrations unchanged; skipping DB migration" else echo "-----> Migrating database" RAILS_ENV="production" bundle exec rake db:migrate fi