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

fix Default scope, use table connection for generating sql #49

Merged
merged 1 commit into from
Jul 8, 2016

Conversation

fmnoise
Copy link
Contributor

@fmnoise fmnoise commented Apr 7, 2016

We found and issue, when acts_as_paranoid is used with database_cleaner gem and multiple database adapters like mysql and postgresql. We had the following errors

Mysql2::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '."deleted_at" IS NULL) LIMIT 1' at line 1: SELECT users.* FROM users WHERE users.id = 42 AND ("users"."deleted_at" IS NULL) LIMIT 1

@zzak
Copy link
Contributor

zzak commented Jul 7, 2016

Needs a rebase

@zzak zzak merged commit 09b7d57 into ActsAsParanoid:master Jul 8, 2016
@zzak
Copy link
Contributor

zzak commented Jul 8, 2016

@fmnoise Thank you!

@filipebarros filipebarros deleted the fix/default-scope branch February 21, 2020 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants