Skip to content

Mongoid paranoia support#273

Open
johnnyshields wants to merge 7 commits intomongoid:masterfrom
tablecheck:mongoid-paranoia-support
Open

Mongoid paranoia support#273
johnnyshields wants to merge 7 commits intomongoid:masterfrom
tablecheck:mongoid-paranoia-support

Conversation

@johnnyshields
Copy link
Copy Markdown
Member

No description provided.

Comment thread .github/workflows/rubocop.yml Outdated
Comment thread Gemfile
gem 'mongoid', version
end

gem 'mongoid_paranoia', '>= 0.6'
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to make a separate integration test that uses a different Gemfile for mongoid_paranoia to make sure it works without.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok good point. same thought crossed my mind.

@dblock
Copy link
Copy Markdown
Collaborator

dblock commented Jun 16, 2024

Want to finish this?

@stanley90
Copy link
Copy Markdown

stanley90 commented Dec 18, 2024

Hi, just want to chime in, I have issues with slugs + paranoia too.
I added rake db:mongoid:create_indexes to my deploy to keep indices updated, and it occasionally fails on duplicate key error. I ended up writing a rake task similar to https://github.com/mongoid/mongoid-slug/blob/c52831e9483e4e2d4f53705c14ee38e3229653d8/lib/tasks/mongoid_slug.rake
but doing klass.deleted.each(&:unset_slug!) and running it before create_indexes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants