#!/usr/bin/env zsh NAME=$1 if [[ "$1" == "" ]]; then echo "Name is required" exit 1 fi DATE=$(date +'%Y%m%d%H%M%S') touch migrations/${DATE}_${NAME}.sql #touch migrations/${DATE}_${NAME}_down.sql