Users & invites models

This commit is contained in:
magnolia-fan
2011-04-09 17:20:36 +04:00
parent 3215a40e0f
commit 3a9658df23
6 changed files with 50 additions and 7 deletions
+9
View File
@@ -0,0 +1,9 @@
class Invite
include Mongoid::Document
store_in :invites
key :referer, Integer,
key :email, String,
key :code, String,
key :senton, Datetime
end
+12
View File
@@ -0,0 +1,12 @@
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