Models fix
This commit is contained in:
parent
c55c239553
commit
0640e2424e
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue