Last Updated: February 25, 2016
·
1.014K
· edmundask

Foreign Keys with Rails

To me it seemed strange that Ruby on Rails does not support foreign keys in database migrations. Luckily, there's a pair of gems to help in this kind of situation:

https://github.com/matthuhiggins/foreigner
https://github.com/jenseng/immigrant