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
store_in :invites
key :referer, Integer,
key :email, String,
key :code, String,
key :senton, Datetime
key :referer, Integer
key :email, String
key :code, String
key :senton, Date
end

View File

@ -2,11 +2,11 @@ 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 :name, String
key :password, String
key :email, String
key :regdate, Date
key :invites, Integer
key :referer, Integer
key :active, Integer
end