Pretty simple question:
I have a model x that has_many y, and model y belongs to x.
If I lock an instance of model x with id x_id, will it also lock the related rows in the table for model y, which has the value x_id in the join column?
Or does it block only the active record and does not care about its relationships?
Thanks!
source share