Fix #1406. Registration form consistency with User model

This commit is contained in:
msdundar 2017-03-26 01:58:09 +03:00
parent b3be600855
commit a6cdd93a66
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ class User < ActiveRecord::Base
scope :admin, -> { where(is_admin: true) }
validates :email, presence: true
validates :email, :password, :password_confirmation, presence: true
validates :username,
uniqueness: {