forked from collectiveidea/awesome_nested_set
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update required column config for children_count
In order for this feature to function properly when we add counter_cache updating on updating (currently it's only for create/delete) we'll need these values to be consistent in the database. Without a default of 0 if we tried to `increment_counter` on `nil` we would run into errors.
- Loading branch information
1 parent
a195410
commit 5c72873
Showing
2 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters