On 16 November 2010 10:00, Dani Dani <li...@ruby-forum.com> wrote:
> Hi,
> Maybe I'm missing/not-understanding here something, but why would I want
> to use the foreigner plugin if rails supports foreign key ? does the
> "has_many/one" and "belong_to" not enough to take care of all activities
> related to foreign key
> e.g. delete from the database all records dependent on the "parent"
> being deleted ?

As the readme for Foreigner at
https://github.com/matthuhiggins/foreigner states:
Foreigner introduces a few methods to your migrations for adding and
removing foreign key constraints.

Constraints being a key word here.  It is for use in migrations, not
in the app itself.

Colin

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to