Usage of ActiveRecord::Relation#missing/associated

Today I learned that Rails 6.1 adds query method associated to check for the association presence. Good to know. I share it with the team at Axlessoft along with the community as a whole.

While reading the article about the methods I thought:

Are we going to use these methods in our code base?

I did some greps and it turns out we won’t.

$ git grep -A 10 joins | grep where.not | grep nil | wc -l
0

There is not a single place in our code that we call

.joins(:association).where.not(association: {id: nil}

or

.joins(:association).where(association: {id: nil})

What does this mean?

Nothing actually. Great methods. I was just curious to see if we will be using them in our code base a lot.