diff options
Diffstat (limited to 'app/models/node.rb')
| -rw-r--r-- | app/models/node.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/node.rb b/app/models/node.rb index d4979ea..4bc8ed4 100644 --- a/app/models/node.rb +++ b/app/models/node.rb | |||
| @@ -16,6 +16,7 @@ class Node < ActiveRecord::Base | |||
| 16 | 16 | ||
| 17 | # Validations | 17 | # Validations |
| 18 | # validates_length_of :slug, :within => 3..40 | 18 | # validates_length_of :slug, :within => 3..40 |
| 19 | validates_uniqueness_of :slug, :scope => :parent_id | ||
| 19 | 20 | ||
| 20 | # Index for Fulltext Search | 21 | # Index for Fulltext Search |
| 21 | define_index do | 22 | define_index do |
