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