Skip to content

Commit

Permalink
Documentation for :primary_key_format.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rolf Timmermans committed Oct 25, 2010
1 parent bbd4b55 commit c410dcf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.rdoc
Expand Up @@ -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

Expand Down

0 comments on commit c410dcf

Please sign in to comment.