Add scripts to help with migrations

This commit is contained in:
Eric Meyer
2017-10-27 14:20:22 -05:00
parent 9cac8e6086
commit e25a9753b4
4 changed files with 17 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/bash
if [ $# -eq 1 ]
then
migrate -database postgresql://localhost:5432/postgres create -dir ./migrations -ext sql $1
else
echo "**An Error Occurred**"
echo "Usage: ./scripts/create_migration <migration-name>"
fi