#!/bin/bash set -e echo "Migrating database..." bundle exec rake db:migrate DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" $DIR/contentful migrate -y