diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-27 08:46:00 -0700 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-06-27 08:46:00 -0700 |
commit | 52f6e47682003c83b0466bf5e140ee302498a226 (patch) | |
tree | f2bb4fef4870ee285a90598efaf621b58d6ecbd0 /railties/test/application/test_test.rb | |
parent | bb16b0ef7e999d79751869a61386702dd1aa88b4 (diff) | |
parent | 94b230e189e7241b96dcbfb41ceabedf7cfd14ac (diff) | |
download | rails-52f6e47682003c83b0466bf5e140ee302498a226.tar.gz rails-52f6e47682003c83b0466bf5e140ee302498a226.tar.bz2 rails-52f6e47682003c83b0466bf5e140ee302498a226.zip |
Merge pull request #6856 from lexmag/polymorphic_generators
Add polymorphic option to model generator
For instance,
$ rails g model Product supplier:references{polymorphic}
generate model with `belongs_to :supplier, polymorphic: true` association and appropriate migration.
Diffstat (limited to 'railties/test/application/test_test.rb')
0 files changed, 0 insertions, 0 deletions