spec/models/log.rb in mongoid-rspec-2.0.0 vs spec/models/log.rb in mongoid-rspec-2.1.0

- old
+ new

@@ -1,4 +1,9 @@ class Log include Mongoid::Document + include Mongoid::Timestamps + include Mongoid::Attributes::Dynamic + store_in collection: "logs" -end \ No newline at end of file + + index({ created_at: 1 }, { bucket_size: 100, expire_after_seconds: 3600 } ) +end