Forum: Ruby on Rails Support for foreign keys in Migrations

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Cb6f29d740e3a8d7f407ca335031bd32?d=identicon&s=25 Steve Eichert (Guest)
on 2006-01-18 23:32
(Received via mailing list)
Is there any work being done to add support for defining foreign keys in
ActiveRecord Migrations?  If not is it something that people would find
useful or do most people here believe in the "Application Database"
style
over the "Integration Database" style [1] as defined by Fowler?

I'd love to see support for foreign keys in Migrations.  For selfish
reasons
I'd be most interested in such support for SQL Server and Oracle.

Cheers,
Steve

[1] http://martinfowler.com/bliki/DatabaseStyles.html
Fac632373c881872ecf26d13aadedf7f?d=identicon&s=25 Joshua Bates (Guest)
on 2006-01-19 00:08
(Received via mailing list)
This plugin does it for mysql & postgre.
http://wiki.rubyonrails.org/rails/pages/Foreign+Ke...
3b9b704813d9e6698cd367321296806d?d=identicon&s=25 Darragh Curran (dcurran)
on 2006-01-19 00:15
Joshua Bates wrote:
> This plugin does it for mysql & postgre.
> http://wiki.rubyonrails.org/rails/pages/Foreign+Ke...

maybe a little simpler - but so far servicing my needs, hadn't looked at
the other one until now.

http://blog.alancfrancis.com/2005/11/add_foreign_key.html
Cb6f29d740e3a8d7f407ca335031bd32?d=identicon&s=25 Steve Eichert (Guest)
on 2006-01-19 03:25
(Received via mailing list)
Joshua/Darragh,

Thanks for the pointers to the plugins!
This topic is locked and can not be replied to.