Generate and Edit Rails Migration
Last updated
Was this helpful?
Last updated
Was this helpful?
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.
collapses these steps into one: