Replace `.exists` with `EXISTS ()`
`.exists` should not be used because it's an internal ActiveRecord method, but we can easily generate the same sql query with `EXISTS`.
Showing
Please register or sign in to comment
`.exists` should not be used because it's an internal ActiveRecord method, but we can easily generate the same sql query with `EXISTS`.