Open lopomaster opened 5 years ago
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
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