this was backward, correct? if we're not using it we should probably remove this. I would guess it's something like:
  remove_reference :shifts, :swap_request, index: true