Created
December 6, 2018 15:34
-
-
Save davemenninger/cbb75eccce87dce030966deb4052e4d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
GIT_ROOT=`git rev-parse --show-toplevel` | |
MIGRATION_FILENAME="$GIT_ROOT/migrations/$1.sql" | |
git checkout -b $1 | |
touch $MIGRATION_FILENAME | |
vim $MIGRATION_FILENAME |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment