Tagged as 3.0 as Ruby + Rails version constraints have been modernised.
- #554 Support prebuilt counter cache association list (#554) Joé Dupuis
- #551 Fix: restore has_one with scope (#551) Paweł Charyło
- #555 📝 Add Yard documentation for Paranoia::Query (#555) Clément Prod'homme
- #548 Add support for Rails 7.1 (#548) Indyarocks
- #535 Allow to skip updating paranoia_destroy_attributes for records while really_destroy! Anton Bogdanov
- #512 Quote table names; Mysql 8 has keywords that might match table names which cause an exception.
- #476 Fix syntax error in documentation.
- #485 Rollback transaction if destroy aborted.
- #522 Add failing tests for association with abort on destroy.
- #513 Fix create callback called on destroy.
- #532 Fix: correct bug when sentinel_value is not a timestamp Hassanin Ahmed
- #531 Added test case to reproduce bug introduce in v2.5.1 Sherif Elkassaby
- #529 Fix: Do not define a RSpec matcher when RSpec isn't present Sebastian Welther
-
#526 Do not include tests files in packaged gem
-
#492 Warn if acts_as_paranoid is called more than once on the same model
-
#481 Replaces hard coded
deleted_at
withparanoia_column
.
-
#516 Add support for ActiveRecord 7.0, drop support for EOL Ruby < 2.5 and Rails < 5.1 adding support for Rails 7
-
#515 Switch from Travis CI to GitHub Actions
-
#503 Bump activerecord dependency for Rails 6.1
-
#483 Update JRuby version to 9.2.8.0 + remove EOL Ruby 2.2
-
#482 Fix after_commit for Rails 6
-
#470 Add support for ActiveRecord 6.0
-
#435 Monkeypatch activerecord relations to work with rails 5.2.0
-
#423 Add
paranoia_destroy
andparanoia_delete
aliases -
#408 Fix instance variable
@_disable_counter_cache
not initialized warning. -
#412 Fix
really_destroy!
behavior withsentinel_value
- #397 Bump active record max version to support 5.1 final
-
#393 Drop support for Rails 4.1 and begin supporting Rails 5.1.
-
#391 Use Contributor Covenant Version 1.4
-
#390 Fix counter cache with double destroy, really_destroy, and restore
-
#389 Added association not soft destroyed validator
Fixes #380
-
#383 Add recovery window feature
Fixes #359
-
#371 Use ActiveSupport.on_load to correctly re-open ActiveRecord::Base
-
#377 Touch record on paranoia-destroy.
Fixes #296.
-
#379 Fixes a problem of ambiguous table names when using only_deleted method.
- Ruby 2.0 or greater is required
- Rails 5.0.0.beta1.1 support @pigeonworks @halostatue and @gagalago
- Previously
#really_destroyed?
may have been defined on non-paranoid models, it is now only available on paranoid models, use regular#destroyed?
instead.
- Ruby 2.3 support
#destroyed?
is no longer overridden. Use#paranoia_destroyed?
for the existing behaviour. Washington Luiz#persisted?
is no longer overridden.- ActiveRecord 4.0 no longer has
#destroy!
as an alias for#really_destroy!
. #destroy
will now raise an exception if called on a readonly record.#destroy
on a hard deleted record is now a successful noop.#destroy
on a new record will set deleted_at (previously this raised an error)#destroy
and#delete
always return self when successful.
- Calling
#destroy
twice will not hard-delete records. Use#really_destroy!
if this is desired. - Fix errors on non-paranoid has_one dependent associations
- Fix restoring polymorphic has_one relationships #189 #174 Patrick Koperwas
- Fix errors when restoring a model with a has_one against a non-paranoid model. #168 Shreyas Agarwal
- Fix rspec 2 compatibility #197 Emil Sågfors
- Fix some deprecation warnings on rails 4.2 Sergey Alekseev
- Add paranoia_scope as named version of default_scope #184 Jozsef Nyitrai
- Fix initialization problems when missing table or no database connection #186
- Fix broken restore of has_one associations #185 #171 Martin Sereinig