mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix section about ApplicationRecord in upgrading guide [ci skip]
This commit is contained in:
parent
7a53a9c13c
commit
f800007c84
1 changed files with 4 additions and 4 deletions
|
@ -55,12 +55,12 @@ Upgrading from Rails 4.2 to Rails 5.0
|
||||||
|
|
||||||
### Active Record models now inherit from ApplicationRecord by default
|
### Active Record models now inherit from ApplicationRecord by default
|
||||||
|
|
||||||
In Rails 4.2 an Active Job inherits from `ActiveRecord::Base`. In Rails 5.0 models
|
In Rails 4.2 an Active Record model inherits from `ActiveRecord::Base`. In Rails 5.0,
|
||||||
inherit from `ApplicationRecord`.
|
all models inherit from `ApplicationRecord`.
|
||||||
|
|
||||||
`ApplicationRecord` is a new superclass for all app models, analogous to app
|
`ApplicationRecord` is a new superclass for all app models, analogous to app
|
||||||
controllers subclassing ApplicationController instead of
|
controllers subclassing `ApplicationController` instead of
|
||||||
ActionController::Base. This gives apps a single spot to configure app-wide
|
`ActionController::Base`. This gives apps a single spot to configure app-wide
|
||||||
model behavior
|
model behavior
|
||||||
|
|
||||||
When upgrading from Rails 4.2 to Rails 5.0 you need to create an
|
When upgrading from Rails 4.2 to Rails 5.0 you need to create an
|
||||||
|
|
Loading…
Reference in a new issue