Hacker News new | ask | show | jobs
by aaronbrethorst 4325 days ago

    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.
3 comments

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"