Note: that post talks about using `foreigner` gem which predates having foreign key support in rails core.