Sha256: 47f9f34929c89792703ad1227779935982c4b2d65e590b4c7e346dc593fb4d2f

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

class Log
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Attributes::Dynamic if Mongoid::Compatibility::Version.mongoid4_or_newer?

  store_in collection: 'logs'

  index({ created_at: 1 }, bucket_size: 100, expire_after_seconds: 3600)
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mongoid-rspec-4.1.0 spec/models/log.rb
mongoid-rspec-4.0.1 spec/models/log.rb
mongoid-rspec-4.0.0 spec/models/log.rb