We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi
I'm using mongoid and having capped collection. Then, my capped collection doesn't seem to be cleared. Here is my code example.
# spec/spec_helper.rb config.before(:suite) do DatabaseCleaner.strategy = :truncation DatabaseCleaner.orm = "mongoid" end config.before(:each) do DatabaseCleaner.clean end # app/models/my_capped class Capped include Mongoid::Document include Mongoid::Timestamps store_in :my_capped, capped: true, size: 500.megabytes field :count, type: Integer, default: 0 end
The text was updated successfully, but these errors were encountered:
Also having this issue. Capped collections need to be dropped instead of truncated. Anyone have a clean solution to this?
Sorry, something went wrong.
Yes, I'm running into the same issue.
No branches or pull requests
Hi
I'm using mongoid and having capped collection. Then, my capped collection doesn't seem to be cleared.
Here is my code example.
The text was updated successfully, but these errors were encountered: