I'm working on a legacy Rails project (they do exist already!) and I have
some questions regarding foreign keys.
Could someone point me to references on Rails and foreign keys? They don't
seem to be used or encouraged, but I don't understand why.
Can they be used and set up with migrations? (I know that can pose problems
with the order of insertion but that can be solved in my case)
How does Rails react when foreign keys give errors?