From 0640e2424ef08d24facb833a9a6882d6226b0ddb Mon Sep 17 00:00:00 2001 From: magnolia-fan Date: Sat, 9 Apr 2011 17:34:56 +0400 Subject: [PATCH] Models fix --- rails/app/models/invite.rb | 8 ++++---- rails/app/models/user.rb | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/rails/app/models/invite.rb b/rails/app/models/invite.rb index d1c6c03..43f1db6 100644 --- a/rails/app/models/invite.rb +++ b/rails/app/models/invite.rb @@ -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 \ No newline at end of file diff --git a/rails/app/models/user.rb b/rails/app/models/user.rb index 3af8e3d..5ec3bb8 100644 --- a/rails/app/models/user.rb +++ b/rails/app/models/user.rb @@ -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 \ No newline at end of file