From e161729c3b6f297e07c0ae1796afa28826da58fe Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 8 Oct 2020 17:53:48 +0200 Subject: Fix typo --- app/models/section.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3