What? Relationships (and thus foreign keys) have been around since before 1.2.
I started using Rails almost at the very beginning. See https://stackoverflow.com/questions/2373262/are-foreign-keys... from 2010 for a bunch of links to DHH opinion on the matter (from 2006.)
Foreign keys made it into the DSL with Rails 4.2
http://guides.rubyonrails.org/4_2_release_notes.html#foreign...
https://apidock.com/rails/ActiveRecord/ConnectionAdapters/Sc...
Before that we were using gems or writing SQL into the up and down migrations.
https://robots.thoughtbot.com/referential-integrity-with-for... (from December 2014)
What? Relationships (and thus foreign keys) have been around since before 1.2.