JS-Tech/resj

View on GitHub
.deploy/migrations.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

set -o errexit

if [[ -z "${RAILS_MASTER_KEY}" ]]; then
  echo "Set RAILS_MASTER_KEY before starting the application."
  exit 1
fi 

echo "Running migrations..."
setuser app bundle exec rake db:prepare
exit 0