From 493006282830e0a877c427e32709901ff9275932 Mon Sep 17 00:00:00 2001 From: Mike Jones Date: Fri, 17 Feb 2023 12:10:19 +0000 Subject: [PATCH] Specify case-sensitive uniqueness for page part slug (Rails 6 deprecation warning) --- pages/app/models/refinery/page_part.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/app/models/refinery/page_part.rb b/pages/app/models/refinery/page_part.rb index 37dba13469..3c1c51767f 100644 --- a/pages/app/models/refinery/page_part.rb +++ b/pages/app/models/refinery/page_part.rb @@ -6,7 +6,7 @@ class PagePart < Refinery::Core::BaseModel before_validation :set_default_slug validates :title, :presence => true - validates :slug, :presence => true, :uniqueness => {:scope => :refinery_page_id} + validates :slug, :presence => true, :uniqueness => {:scope => :refinery_page_id, :case_sensitive => true} alias_attribute :content, :body extend Mobility