Avram::SoftDelete::Model
table do column soft_deleted_at : Time? end end
You should also add the `Avram::SoftDeleteQuery` to your query
class ArticleQuery < Article::BaseQuery include Avram::SoftDelete::Query end
Instance methods
save_operation_class
Sourcesoft_delete
Soft delete the record
This will set soft_deleted_at to the current time (Time.utc)
soft_deleted?
Returns true if soft deleted, otherwise false
If the soft_deleted_at has a time value the record is "soft deleted".
If soft_deleted_at is nil the record has not been deleted yet.
soft_deleted_at
Source