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:
Saverio Miroddi 2018-08-08 16:06:06 +02:00
parent ef73318e29
commit 6ae302c9da
1 changed files with 1 additions and 1 deletions

View File

@ -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.