-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
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
Rails 4.1 really_destroy! soft deletes the record #129
Comments
@masterkain Do you have an app that you can reproduce this issue in? That would be really helpful! |
hi! i ran the test suite against rails 4.1.1 and the two tests that are checking really_destroy! are failing (along with two other tests (test_restore_with_nil_has_one_association & test_delete_behavior_for_plain_models_callbacks) that seem unrelated).
i looked through the code and saw the following method, which also seems to be the problem:
so is this the expected behaviour with rails 4.1.x? do we have to touch the paranoia column before calling really_destroy! ? |
I get the same error when calling the regular destroy! method |
Yep, same here. |
@matcouto Please upgrade your Rails version. It is currently 6 steps behind the current Rails 4.0.x "HEAD". |
@radar @masterkain I'm re-inventing paranoia here: https://github.com/MarkMurphy/paranoia/tree/3.0-wip All I have left to do is re-integrate the restore methods and write the unit tests. Major differences are:
|
@MarkMurphy Why on earth are you doing that? Why not contribute back to the main repo instead of forking? If you're that keen on building it yourself then I can add you as a contributor here. |
@radar There's no reason it can't be turned into a pull request. |
Any updates on this issue? Still not working with Rails 4.1.6 in my case. Calling |
For what it's worth, I'm using paranoia 2.2.1 and Rails 4.2 and both |
Please try using the latest Rails + paranoia gem releases and let me know if the issue is still occurring on those. I will assume this is fixed until I see proof otherwise |
Hello, I am getting the error below for inherited object: NoMethodError: undefined method `paranoid_column' for #Class:0x00000003432aa8 |
Perhaps I'm missing something, however some of my test started failing.
I use paranoia master rails4 branch, I saw
really_deleted!
and tried to give it a go, unfortunately it seems that on Rails 4.1.0 (4-1-stable) doing so just soft deletes the record, that is, it sets the deleted_at value.not sure if it helps but here's the debug trace:
I tried running the paranoia tests locally, and so far just one, possibly not related failure that is also present on travis.
The test for
really_destroy!
passes in the test suite, I also verified the sql queries it is doing and they seems correct, although I believe I'm testing against 4.0.4.The text was updated successfully, but these errors were encountered: