Skip to content

Instantly share code, notes, and snippets.

@jeremywrowe
Last active December 18, 2015 19:19
Show Gist options
  • Save jeremywrowe/5832258 to your computer and use it in GitHub Desktop.
Save jeremywrowe/5832258 to your computer and use it in GitHub Desktop.
migrate () {
local zeus_command=""
if _zeus-installed
then
zeus_command="zeus"
fi
$zeus_command rake db:migrate && $zeus_command rake db:rollback && $zeus_command rake db:migrate && $zeus_command rake db:test:prepare
}
_zeus-installed () {
which zeus > /dev/null 2>&1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment