Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

    Support for real foreign keys!
    addforeignkey/removeforeignkey are now
    available in migrations.
Awesome! Despite the naysayers, I still feel incredibly productive in Rails, and am so happy it continues to improve.


Agreed. Having recently worked on an implementation using nodejs/express/angular going back to plain old Ruby/Rails is very nice.


Totally! And I sorely miss cool and helpful guys like Ryan Bates in the scene lately.


Chris Oliver's running some good-looking screencasts to fill those shoes: https://gorails.com/


Thanks! Great to hear someone's taken up the good work.


This is great, and it looks like it was modeled after the foreigner gem (https://github.com/matthuhiggins/foreigner).


Totally agree, still funny how long foreign keys have been absent from vanilla Rails ;) But I guess their lack just didn't cause enough pain for someone to add them (at least it didn't for me)


Rails lover here, but the original argument against used to be "you don't need foreign keys"




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: