Merge acbc7df96a into e2a7e396a2
This commit is contained in:
commit
ea52b0622b
6 changed files with 12 additions and 13 deletions
|
|
@ -54,6 +54,7 @@ class User < ActiveRecord::Base
|
|||
scope :admin, -> { where(is_admin: true) }
|
||||
|
||||
validates :email, presence: true
|
||||
validates :password, :password_confirmation, presence: true, on: :create
|
||||
|
||||
validates :username,
|
||||
uniqueness: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue