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 g migration name_of_migrationを実行した後、そのファイルを TextMate で自動的に開くように Rails を構成することは可能ですか?
rails g migration name_of_migration
これでエイリアスを作成できます:
alias last_migration='ls db/migrate/* | tail -n1 | xargs open -a "Textmate"'
次に、端末から実行します。
last_migration
いいえ。ただし、次のショートカットを使用して、Textmateで移行を生成できます-
「シフト+コントロール+M」