Module: Mongoid::Sharding::ClassMethods
- Defined in:
- lib/mongoid/sharding.rb
Overview
:nodoc
Instance Method Summary collapse
-
#shard_key(*names) ⇒ Object
Specifies a shard key with the field(s) specified.
Instance Method Details
#shard_key(*names) ⇒ Object
Specifies a shard key with the field(s) specified.
56 57 58 |
# File 'lib/mongoid/sharding.rb', line 56 def shard_key(*names) self.shard_key_fields = names end |