Merge pull request #3562 from hennevogel/bugfix/3557

Validate length of User.affiliation
This commit is contained in:
Henne Vogelsang 2025-01-30 16:54:15 +01:00 committed by GitHub
commit d27c881555
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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