1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00
Files
til/vim/generate-and-edit-rails-migration.md
2015-02-22 09:46:38 -06:00

551 B

Generate and Edit Rails Migration

Creating a new Rails migration has always involved two distinct steps for me. The first is to run rails g migration CreateSomeTable to create a migration file. The second is to copy and paste the migration's filename after vi to actually start editing it.

Rails.vim collapses these steps into one:

:Rgenerate migration CreateSomeTable

source