acts_as_paranoid: Save deleted record failed without throw a meaningful error message
We have some records valid?
but cannot save
and checking errors
just got empty array []
After debugging, we found acts_as_paranoid
prevent saving a deleted record without throw a meaningful error message.
I think it is better to add a meaningful message to help debugging.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (7 by maintainers)
I’m going to close this issue since not being able to save a deleted record is default Rails behavior and it is Rails that produces the error message.
If the migration would happen in a regular Rails migration, I would simply recommend creating a separate model class there, without
acts_as_paranoid
. I’m not entirely sure why Lockbox migrates the data outside a Rails migration.