aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorrspeicher <rspeicher@gmail.com>2010-06-14 18:19:01 -0400
committerrspeicher <rspeicher@gmail.com>2010-06-14 18:19:01 -0400
commit6f0eb4a0984631b47f4802b29d7c611228f45b5a (patch)
tree25c81d4f9b3416beb385671594bb7c641ed66936 /railties
parentef2798f018d98dce28566a1679b7b85cd6acf75e (diff)
downloadrails-6f0eb4a0984631b47f4802b29d7c611228f45b5a.tar.gz
rails-6f0eb4a0984631b47f4802b29d7c611228f45b5a.tar.bz2
rails-6f0eb4a0984631b47f4802b29d7c611228f45b5a.zip
Active Record Basics - Separate and clarify the explanations for created_at/on and updated_at/on
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/active_record_basics.textile6
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_basics.textile b/railties/guides/source/active_record_basics.textile
index 57477b44c5..e32898129f 100644
--- a/railties/guides/source/active_record_basics.textile
+++ b/railties/guides/source/active_record_basics.textile
@@ -60,8 +60,10 @@ Active Record uses naming conventions for the columns in database tables, depend
There are also some optional column names that will create additional features to Active Record instances:
-* *created_at / created_on* - ActiveRecord will store the current date and time to this field when creating the record.
-* *updated_at / updated_on* - ActiveRecord will store the current date and times to this field when updating the record.
+* *created_at* - Automatically gets set to the current date and time when the record is first created.
+* *created_on* - Automatically gets set to the current date when the record is first created.
+* *updated_at* - Automatically gets set to the current date and time whenever the record is updated.
+* *updated_on* - Automatically gets set to the current date whenever the record is updated.
* *lock_version* - Adds "optimistic locking":http://api.rubyonrails.com/classes/ActiveRecord/Locking.html to a model.
* *type* - Specifies that the model uses "Single Table Inheritance":http://api.rubyonrails.com/classes/ActiveRecord/Base.html
* *(table_name)_count* - Used to cache the number of belonging objects on associations. For example, a +comments_count+ column in a +Post+ class that has many instances of +Comment+ will cache the number of existent comments for each post.