Re:PostgreSQL indexing in Rails
by gingerlime on Friday December 27, 2013 @04:08PM
(#6972621)
I was about to suggest the same thing. And if you go with foreigner, then you can / should also use the aptly-named immigrant[1] gem to automatically detect where foreign keys are missing and create the migrations for you.
[1]https://github.com/jenseng/immigrant