Where Clause Along with Associations in Rails
As a developer you will struggle with models associations but sometimes you may need only some record from an associations, and when you need it frequently you can create a separate association like so:
has_many :remote_employees, -> {where(remote:true)}, class_name: 'Employee'