2017-10-27 19:18:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ $# -eq 1 ]
|
|
|
|
then
|
2017-11-09 19:59:12 +00:00
|
|
|
migrate create -dir ./db/migrations -ext sql $1
|
2017-10-27 19:18:12 +00:00
|
|
|
else
|
|
|
|
echo "**An Error Occurred**"
|
|
|
|
echo "Usage: ./scripts/create_migration <migration-name>"
|
|
|
|
fi
|