mirror of
https://github.com/indentlabs/notebook.git
synced 2025-10-26 11:19:22 +00:00
9 lines
191 B
Ruby
9 lines
191 B
Ruby
class User
|
|
include Mongoid::Document
|
|
field :name, :type => String
|
|
field :email, :type => String
|
|
field :password, :type => String
|
|
|
|
validates_presence_of :name, :email, :password
|
|
end
|