Adds soft-delete functionality for ActiveRecord.