Validate length of User.affiliation

This commit is contained in:
Henne Vogelsang 2025-01-30 16:43:39 +01:00
parent 368e2ddd88
commit e324b9de78
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6

View file

@ -101,6 +101,7 @@ class User < ApplicationRecord
presence: true
validate :biography_limit
validates :affiliation, length: { maximum: 150 }
DISTRIBUTION_COLORS = {
'Active' => 'green',