Skip to content
This repository
Browse code

The _at / _on timestamp methods do the same things, I seemed to remem…

…ber a distinction at some point but I guess that's changed.
  • Loading branch information...
commit 92937fbf9b56d2f069f0fdfa7a2c5b19c89dc75f 1 parent 67ed370
authored October 23, 2008
16  railties/doc/guides/source/active_record_basics.txt
@@ -58,15 +58,13 @@ used to designate a table using Single Table Inheritance. If you are not using S
58 58
 keyword like "context", that may still accurately describe the data you are modeling.
59 59
 
60 60
 [grid=all]
61  
-`-------------------`---------------------------------------------------------------------------------
62  
-created_at           Rails stores the current date to this field when creating the record.
63  
-created_on           Rails stores the current date & time to this field when creating the record.
64  
-updated_at           Rails stores the current date to this field when updating the record.
65  
-updated_on           Rails stores the current date & time to this field when updating the record.
66  
-lock_version         Adds optimistic locking to a model link:http://api.rubyonrails.com/classes/ActiveRecord/Locking.html[more about optimistic locking].
67  
-type                 Specifies that the model uses Single Table Inheritance link:http://api.rubyonrails.com/classes/ActiveRecord/Base.html[more about STI].
68  
-id                   All models require an id. the default is name is "id" but can be changed using the "set_primary_key" or "primary_key" methods.
69  
-#{table_name}_count  Can be used to caches the number of belonging objects on the associated class.
  61
+`------------------------`---------------------------------------------------------------------------------
  62
+created_at / created_on  Rails stores the current date & time to this field when creating the record.
  63
+updated_at / updated_on  Rails stores the current date & time to this field when updating the record.
  64
+lock_version             Adds optimistic locking to a model link:http://api.rubyonrails.com/classes/ActiveRecord/Locking.html[more about optimistic locking].
  65
+type                     Specifies that the model uses Single Table Inheritance link:http://api.rubyonrails.com/classes/ActiveRecord/Base.html[more about STI].
  66
+id                       All models require an id. the default is name is "id" but can be changed using the "set_primary_key" or "primary_key" methods.
  67
+#{table_name}_count      Can be used to caches the number of belonging objects on the associated class.
70 68
 ------------------------------------------------------------------------------------------------------
71 69
 
72 70
 By default rails assumes all tables will use “id” as their primary key to identify each record. Though fortunately you won’t have explicitly declare this, Rails will automatically create that field unless you tell it not to.

0 notes on commit 92937fb

Please sign in to comment.
Something went wrong with that request. Please try again.