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 (empty result).update_all #22

Open
lopomaster opened this issue Apr 1, 2019 · 0 comments
Open

Problem with (empty result).update_all #22

lopomaster opened this issue Apr 1, 2019 · 0 comments

Comments

@lopomaster
Copy link

Example: Model User:
User.none.union(User.none).update_all(username: 'new username')

Setting username = 'new username' to all users of the database -> When User.none.union(User.none).count is equal to 0!

Rails version:
Rails 5.0.5

Ruby version:
ruby 2.5.3p105

Thanks

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

No branches or pull requests

1 participant