On 16 November 2010 11:53, Dani Dani <li...@ruby-forum.com> wrote:
> Colin Law wrote in post #961785:
>
>> 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
>
> Ok, thank you, wasn't sure.
> So there is no need for any plugin to support ActiveRecord regarding
> foreign key use, e.g. make sure that all dependent records to be removed
> from the database ? (sorry if it sounds too basics).

That is correct.  Of course you still have to write the correct code.

In fact there is never any _need_ for a plugin as anything in a plugin
can just be written by yourself.  Plugins just allow us gratefully to
stand on the shoulders of those that have come before.

Colin

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