Remove hard-coded schema from active record relationship query