diff options
Diffstat (limited to 'app/models/section.rb')
-rw-r--r-- | app/models/section.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/section.rb b/app/models/section.rb index 670c543..0a1fbf2 100644 --- a/app/models/section.rb +++ b/app/models/section.rb @@ -5,6 +5,6 @@ class Section < ApplicationRecord acts_as_list column: :rank, scope: :category validates :name, - uniqueness: { scope: category_id }, + uniqueness: { scope: :category_id }, length: 3..64 end |