[openstreetmap/openstreetmap-website] Allow `user/preferences` values up to 10_000 (PR #6399)

Pablo Brasero notifications at github.com
Mon Sep 29 12:35:16 UTC 2025


@pablobm commented on this pull request.



> @@ -17,5 +17,6 @@ class UserPreference < ApplicationRecord
   belongs_to :user
 
   validates :user, :associated => true
-  validates :k, :v, :length => 1..255, :characters => true
+  validates :k, :length => 1..255, :characters => true
+  validates :v, :length => 1..10_000, :characters => true

Got it. Thank you! 👍 

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6399#discussion_r2387776674
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/6399/review/3279534153 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250929/0436e3ad/attachment.htm>


More information about the rails-dev mailing list