rails/rails — pull request #6956 by lexmag (2012-07-04 12:57:09+00:00)
Title: Add references statements to migration generator

For instance, `$ rails g migration AddReferencesToProduct user:references supplier:references{polymorphic}` will generate:

add_reference :products, :user, index: true
add_reference :products, :supplier, polymorphic: true, index: true