Skip to content

Commit

Permalink
amended cache depth migration
Browse files Browse the repository at this point in the history
  • Loading branch information
dburrows authored and stefankroes committed Nov 12, 2009
1 parent ad26f7b commit ad6dda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ The acts_as_tree methods supports the following options:
:restrict An AncestryException is raised if any children exist
:cache_depth Cache the depth of each node in the 'ancestry_depth' column (default: false)
If you turn depth_caching on for an existing model:
- Migrate: add_column [table], :ancestry_depth, :default => 0
- 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

Expand Down

0 comments on commit ad6dda9

Please sign in to comment.