redbooth/immortal

Problem with postgresql

Opened this issue · 1 comments

I have a problem using immortal with postgresql
When I try to destroy a model, the app segfaults when updating the database.

I think the problem is in method immortal_delete_all,
unscoped.update_all({:deleted => 1}, conditions)
should be
unscoped.update_all({:deleted => true}, conditions)

Hmm, good catch. We should use activerecord abstract method for this.

I'll fix that later, thanks for reporting