Module: Mongoid::Sharding::ClassMethods
- Defined in:
- lib/mongoid/sharding.rb
Instance Method Summary (collapse)
-
- (Object) shard_key(*names)
Specifies a shard key with the field(s) specified.
Instance Method Details
- (Object) shard_key(*names)
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 |