Permalink
Browse files

Add changelog entry for polymorphic option in model generator

Pull request #6856, merged in 52f6e47.
[ci skip]
  • Loading branch information...
1 parent 565d54d commit d79ca9288e5c55563a554d05c779a41e701181cd @carlosantoniodasilva carlosantoniodasilva committed Jun 27, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 railties/CHANGELOG.md
View
@@ -1,5 +1,15 @@
## Rails 4.0.0 (unreleased) ##
+* Allow scaffold/model/migration generators to accept a `polymorphic` modifier
+ for `references`/`belongs_to`, for instance
+
+ rails g model Product supplier:references{polymorphic}
+
+ will generate the model with `belongs_to :supplier, polymorphic: true`
+ association and appropriate migration.
+
+ *Aleksey Magusev*
+
* Set `config.active_record.migration_error` to `:page_load` for development *Richard Schneeman*
* Add runner to Rails::Railtie as a hook called just after runner starts. *José Valim & kennyj*

0 comments on commit d79ca92

Please sign in to comment.