That's not possible `dungeon_master_id` isn't an attribute/column on `Player`. You can't scope against columns on another table. This will have to be written as a custom validation.