12 lines
249 B
Ruby
12 lines
249 B
Ruby
class User
|
|
include Mongoid::Document
|
|
store_in :users
|
|
|
|
key :name, String,
|
|
key :password, String,
|
|
key :email, String,
|
|
key :regdate, Datetime,
|
|
key :invites, Integer,
|
|
key :referer, Integer,
|
|
key :active, Integer
|
|
end |