aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2011-06-05 20:36:09 -0700
committerGuillermo Iguaran <guilleiguaran@gmail.com>2011-06-05 20:36:09 -0700
commitd3d5b048f9036da941b8164dc8aa85d857059e47 (patch)
tree470f97644c763b1cec64785542cd5635ffca3f7a /railties/guides
parenta620e65053b1fc613590bee60b4297489f2d35bc (diff)
downloadrails-d3d5b048f9036da941b8164dc8aa85d857059e47.tar.gz
rails-d3d5b048f9036da941b8164dc8aa85d857059e47.tar.bz2
rails-d3d5b048f9036da941b8164dc8aa85d857059e47.zip
Change http://api.rubyonrails.com to http://api.rubyonrails.org
Diffstat (limited to 'railties/guides')
-rw-r--r--railties/guides/source/active_record_basics.textile4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/active_record_basics.textile b/railties/guides/source/active_record_basics.textile
index b7926f3a3b..3e46e7df9f 100644
--- a/railties/guides/source/active_record_basics.textile
+++ b/railties/guides/source/active_record_basics.textile
@@ -64,8 +64,8 @@ There are also some optional column names that will create additional features t
* *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
+* *lock_version* - Adds "optimistic locking":http://api.rubyonrails.org/classes/ActiveRecord/Locking.html to a model.
+* *type* - Specifies that the model uses "Single Table Inheritance":http://api.rubyonrails.org/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.
NOTE: While these column names are optional they are in fact reserved by Active Record. Steer clear of reserved keywords unless you want the extra functionality. For example, "type" is a reserved keyword used to designate a table using Single Table Inheritance. If you are not using STI, try an analogous keyword like "context", that may still accurately describe the data you are modeling.