Is it possible to configure Rails so that after starting rails g migration name_of_migrationit automatically opens this file in TextMate?
rails g migration name_of_migration
You can create an alias with this:
alias last_migration='ls db/migrate/* | tail -n1 | xargs open -a "Textmate"'
and then run it from the terminal:
last_migration
No, but you can generate a migration to Textmate using the following shortcut -
"Shift + Control + M"