2014-02-13 06:51:23 +00:00
|
|
|
class Client
|
|
|
|
include Mongoid::Document
|
|
|
|
field :site_name, type: String
|
|
|
|
field :site_token, type: String
|
|
|
|
field :site_id, type: String
|
2014-02-18 09:06:53 +00:00
|
|
|
field :university, type: String
|
|
|
|
field :department, type: String
|
|
|
|
field :email, type: String
|
|
|
|
field :country, type: String
|
|
|
|
field :url, type: String
|
2014-02-13 06:51:23 +00:00
|
|
|
|
|
|
|
validates :site_id, :uniqueness => true
|
|
|
|
validates :site_token, :uniqueness => true
|
2014-02-18 09:06:53 +00:00
|
|
|
end
|