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
Written by Edmundas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#