mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
ActiveRecord Basics guide: correct explanation of the updated_at
logic [ci skip]
It's misleanding/incorrect to state that `updated_at` is set on updates, since creation != update (and the column is actually set on creation, too).
This commit is contained in:
parent
ef73318e29
commit
6ae302c9da
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ to Active Record instances:
|
|||
* `created_at` - Automatically gets set to the current date and time when the
|
||||
record is first created.
|
||||
* `updated_at` - Automatically gets set to the current date and time whenever
|
||||
the record is updated.
|
||||
the record is created or updated.
|
||||
* `lock_version` - Adds [optimistic
|
||||
locking](http://api.rubyonrails.org/classes/ActiveRecord/Locking.html) to
|
||||
a model.
|
||||
|
|
Loading…
Reference in a new issue