2021-12-13 13:15:18 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
root_path="$(cd "$(dirname "$0")/.." || exit ; pwd -P)"
|
|
|
|
|
2021-12-14 22:13:28 -05:00
|
|
|
if [[ -d "${root_path}/ee/" || "${GITLAB_MIGRATE_MAIN_ONLY}" == "true" ]]; then
|
2021-12-13 13:15:18 -05:00
|
|
|
task="db:migrate:main"
|
|
|
|
else
|
|
|
|
task="db:migrate"
|
|
|
|
fi
|
|
|
|
|
|
|
|
eval "bundle exec rake ${task} ${*}"
|