module

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

restore

Restore the record

This will set soft_deleted_at to nil

Source
save_operation_class
Source
soft_delete

Soft delete the record

This will set soft_deleted_at to the current time (Time.utc)

Source
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.

Source
soft_deleted_at
Source