You’re not receiving notifications from this thread.
ActiveRecord Default Scopes, Unscoped, and Unscope Discussion
These functions are easy to understand for new people and they can setup by watching any video. The ukessays.com review also working on the same projects and you can take help from them.
A great thing to call out when using default_scopes is to talk about how they interfere with model initialization. Learnt this the hard way 😁