You don’t have to change anything. But, consider that FK support in
isn’t particularly amazing and fantastic… a lot of times, getting your
foreign keys to work well with everything else you’re doing in Rails can
invovle some intense hacking (especially when using the testing
For the most part, the associations that you can define via ActiveRecord
Rails invalidate the use of foreign keys… they do exactly the same
as foreign keys do, and they do it in a more intelligible and
easy-to-consume manner. That being said, if your data’s integrity is
absolutely 100% vital in all cases (ie you are a medical institution, or
bank, or some such), I’d say stick with your foreign keys, because they
can’t be skipped by the program (and Rails has stuff built in to skip
any functionality it implements).
It’s definitely something you need to think about very carefully before
deciding which way to move forward… if you can be more specific about
particular situation, then others who know more about this stuff might
able to provide you with some more specific help.