ruby script/generation migration
... will give you the help info.
ruby script/generation migration Post title:string body:text
... will create the file.
http://guides.rails.info/migrations.html... has more background, but it's for rails 3, so the syntax is different.