14 lines
385 B
Ruby
14 lines
385 B
Ruby
class Client
|
|
include Mongoid::Document
|
|
field :site_name, type: String
|
|
field :site_token, type: String
|
|
field :site_id, type: String
|
|
field :university, type: String
|
|
field :department, type: String
|
|
field :email, type: String
|
|
field :country, type: String
|
|
field :url, type: String
|
|
|
|
validates :site_id, :uniqueness => true
|
|
validates :site_token, :uniqueness => true
|
|
end |