Permalink
Browse files

Documentation for :primary_key_format.

  • Loading branch information...
1 parent bbd4b55 commit c410dcf313704cef7d8c66f61b55a8b0db0b9dae Rolf Timmermans committed Oct 25, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 README.rdoc
View
@@ -80,6 +80,8 @@ The has_ancestry methods supports the following options:
- Migrate: add_column [table], :ancestry_depth, :integer, :default => 0
- Build cache: TreeNode.rebuild_depth_cache!
:depth_cache_column Pass in a symbol to store depth cache in a different column
+ :primary_key_format Supply a regular expression that matches the format of your primary key.
+ By default, primary keys only match integers ([0-9]+).
= (Named) Scopes

0 comments on commit c410dcf

Please sign in to comment.