trepa/scripts/create_migration.sh

5 lines
127 B
Bash

#!/bin/bash
timestamp=$(date +%Y%m%d%H%M%S)
migration_file="migrations/$(date +%Y%m%d%H%M%S)_$1.up.sql"
touch $migration_file