1. 6
  1.  

  2. 1

    Rails has supported foreign keys out of the box since I believe 4.0. The reason it took Rails so long and that it’s not the default is not due to performance, but because one of Rails' key goals from early on was to be “database-agnostic”.