diff options
author | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-08-08 16:06:06 +0200 |
---|---|---|
committer | Saverio Miroddi <saverio.pub2@gmail.com> | 2018-08-08 16:06:06 +0200 |
commit | 6ae302c9da8462aef5394cef356b323d50bd799c (patch) | |
tree | ce6155799fe6c30a64ffa97729721d91e53a4d2d /guides/source/active_record_basics.md | |
parent | ef73318e29666786feb00e9e9b3b49a771bb0b73 (diff) | |
download | rails-6ae302c9da8462aef5394cef356b323d50bd799c.tar.gz rails-6ae302c9da8462aef5394cef356b323d50bd799c.tar.bz2 rails-6ae302c9da8462aef5394cef356b323d50bd799c.zip |
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).
Diffstat (limited to 'guides/source/active_record_basics.md')
-rw-r--r-- | guides/source/active_record_basics.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md index 2f85b765a3..ef5ddb5282 100644 --- a/guides/source/active_record_basics.md +++ b/guides/source/active_record_basics.md @@ -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. |