10 lines
231 B
Ruby
10 lines
231 B
Ruby
|
class Client
|
||
|
include Mongoid::Document
|
||
|
field :site_name, type: String
|
||
|
field :site_token, type: String
|
||
|
field :site_id, type: String
|
||
|
|
||
|
validates :site_id, :uniqueness => true
|
||
|
validates :site_token, :uniqueness => true
|
||
|
end
|