Skip to content

Instantly share code, notes, and snippets.

@marceloandrader
Created April 16, 2012 15:32
Show Gist options
  • Save marceloandrader/2399493 to your computer and use it in GitHub Desktop.
Save marceloandrader/2399493 to your computer and use it in GitHub Desktop.
create migration
#!/bin/bash
# to create migrations files based on time
# parameter should be the name of the migration
# usage:
# ./create_migration.sh add_fields_to_table
touch `date -u +%Y%m%d%H%M%S_`$1.sql%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment