Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以配置 Rails 以便在运行后rails g migration name_of_migration自动在 TextMate 中打开该文件?
rails g migration name_of_migration
你可以用这个创建一个别名:
alias last_migration='ls db/migrate/* | tail -n1 | xargs open -a "Textmate"'
然后从您的终端运行它:
last_migration
不,但您可以使用以下快捷方式在 Textmate 中生成迁移 -
“Shift + Control + M”