database_cleaner-active_record icon indicating copy to clipboard operation
database_cleaner-active_record copied to clipboard

[FIX] Make more meaningful methods name

Open maniSHarma7575 opened this issue 1 year ago • 0 comments

Problem Description

There is a typo in the deletion strategy's clean method when fetching tables for deletion. The current method name is tables_to_truncate.

To enhance clarity and consistency, it is recommended to change the method name to tables_to_clean. This change is more meaningful for both deletion and truncation strategies.

Since the deletion strategy inherits from the truncation class to maintain consistency and inheritance, it is also advisable to update the method name in the truncation class from tables_to_truncate to tables_to_clean.

maniSHarma7575 avatar Jan 17 '24 07:01 maniSHarma7575