MPH-30: Prevent ForeignKey relationships to index columns. Adding tests.