1
0
Fork 0
forked from OpenNeo/impress
impress/app/models/auth_user.rb

10 lines
317 B
Ruby
Raw Normal View History

class AuthUser < AuthRecord
self.table_name = 'users'
devise :database_authenticatable, :encryptable
# devise :database_authenticatable, :lockable, :registerable, :recoverable,
# :trackable, :validatable
validates :name, presence: true, uniqueness: {case_sensitive: false},
length: {maximum: 20}
end