1
0
Fork 0

Models fix

This commit is contained in:
magnolia-fan 2011-04-09 17:34:56 +04:00
parent c55c239553
commit 0640e2424e
2 changed files with 10 additions and 10 deletions

View File

@ -2,8 +2,8 @@ class Invite
include Mongoid::Document include Mongoid::Document
store_in :invites store_in :invites
key :referer, Integer, key :referer, Integer
key :email, String, key :email, String
key :code, String, key :code, String
key :senton, Datetime key :senton, Date
end end

View File

@ -2,11 +2,11 @@ class User
include Mongoid::Document include Mongoid::Document
store_in :users store_in :users
key :name, String, key :name, String
key :password, String, key :password, String
key :email, String, key :email, String
key :regdate, Datetime, key :regdate, Date
key :invites, Integer, key :invites, Integer
key :referer, Integer, key :referer, Integer
key :active, Integer key :active, Integer
end end