aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorAleksey Magusev <lexmag@gmail.com>2012-07-08 17:01:49 +0400
committerAleksey Magusev <lexmag@gmail.com>2012-07-08 23:03:05 +0400
commit0cae7c60ac6e6209c3d9a7cc64ad2298b7e27fe4 (patch)
treee1c77adaa95e5f370914640cb37cfb39664bf516 /guides
parent7404cda9f61e41d52ce244d60abbf598684a96c4 (diff)
downloadrails-0cae7c60ac6e6209c3d9a7cc64ad2298b7e27fe4.tar.gz
rails-0cae7c60ac6e6209c3d9a7cc64ad2298b7e27fe4.tar.bz2
rails-0cae7c60ac6e6209c3d9a7cc64ad2298b7e27fe4.zip
Add references statements to migration generator
AddXXXToYYY/RemoveXXXFromYYY migrations are produced with references statements, for instance rails g migration AddReferencesToProducts user:references supplier:references{polymorphic} will generate the migration with: add_reference :products, :user, index: true add_reference :products, :supplier, polymorphic: true, index: true
Diffstat (limited to 'guides')
0 files changed, 0 insertions, 0 deletions