diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index e7a50839..7c8f02c0 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception MEETING_NAME_LIMIT = 90 - USER_NAME_LIMIT = 30 + USER_NAME_LIMIT = 32 # Show an information page when migration fails and there is a version error. def migration_error? diff --git a/app/models/user.rb b/app/models/user.rb index 679306de..c672182f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -7,7 +7,7 @@ class User < ApplicationRecord has_many :rooms belongs_to :main_room, class_name: 'Room', foreign_key: :room_id, required: false - validates :name, length: { maximum: 24 }, presence: true + validates :name, length: { maximum: 32 }, presence: true validates :provider, presence: true validates :image, format: { with: /\.(png|jpg)\Z/i }, allow_blank: true validates :email, length: { maximum: 60 }, allow_blank: true, diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb index af3c9aed..c8257dda 100644 --- a/spec/models/user_spec.rb +++ b/spec/models/user_spec.rb @@ -9,7 +9,7 @@ describe User, type: :model do context 'validations' do it { should validate_presence_of(:name) } - it { should validate_length_of(:name).is_at_most(24) } + it { should validate_length_of(:name).is_at_most(32) } it { should validate_presence_of(:provider) }