mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add changelog entry for polymorphic option in model generator
Pull request #6856, merged in 52f6e47682
.
[ci skip]
This commit is contained in:
parent
565d54d9ec
commit
d79ca9288e
1 changed files with 10 additions and 0 deletions
|
@ -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*
|
||||
|
|
Loading…
Reference in a new issue