Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with postgresql #4

Open
davidmm opened this issue May 20, 2011 · 1 comment
Open

Problem with postgresql #4

davidmm opened this issue May 20, 2011 · 1 comment
Labels

Comments

@davidmm
Copy link

davidmm commented May 20, 2011

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)

@unixcharles
Copy link
Contributor

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

I'll fix that later, thanks for reporting

rogercampos pushed a commit to rogercampos/immortal that referenced this issue Dec 9, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants