On Mon, Nov 28, 2011 at 04:50:23PM -0200, Rodrigo Rosenfeld Rosas wrote:
> Now, as promised, let me layout exactly what I was talking about.
> I'll also borrow the method names from the foreigner gem.
> 
> 1- I'm proposing the change to the "reference" type in the
> migrations, like described above.
> 2- Add add_foreign_key and remove_foreign_key to the DSL syntax
> 3- Add some kind of foreign key representation to the schema.rb DSL
> 4- Detect foreign keys when possible on db:schema:dump
> 
> Of course, 4 is optional and could be done as a low-priority issue.
> 
> I hope this clarifies what I'm asking for.

AFAIK, nobody has sent a pull request with these features.  Adding FK
support is on my list, but I only have so much time in one day.  If
someone does the work, I'll be happy to merge.

-- 
Aaron Patterson
http://tenderlovemaking.com/

Attachment: pgpD7ve68DVBd.pgp
Description: PGP signature

Reply via email to