add player rating to the db
This commit is contained in:
@@ -7,6 +7,7 @@ class User < ApplicationRecord
|
||||
normalizes :nickname, with: ->(n) { n.strip }
|
||||
|
||||
validates :nickname, presence: true, uniqueness: { case_sensitive: false }, length: { minimum: 3, maximum: 24 }
|
||||
validates :rating, presence: true
|
||||
validates :password, presence: true, length: { minimum: 6 }, if: -> { new_record? || password_digest_changed? }
|
||||
validate :avatar_content_type, if: -> { avatar.attached? }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user