I have an ActiveRecord query:
Post.where(users: [])
In Rails 5.1.1, this results in:
SELECT `posts`.* FROM `posts` WHERE (users = '[]')
but in Rails 5.2.2, this results in:
SELECT `posts`.* FROM `posts` WHERE 1=0
Does anyone know if this is expected behaviour in Rails 5.2 or a bug?