#!/bin/bash root_path="$(cd "$(dirname "$0")/.." || exit ; pwd -P)" if [[ -d "${root_path}/ee/" ]]; then task="db:migrate:main" else task="db:migrate" fi eval "bundle exec rake ${task} ${*}"