On Thu, Oct 21, 2010 at 8:43 AM, Marnen Laibow-Koser
<[email protected]> wrote:
> Rajinder Yadav wrote in post #956033:
>> On 10-10-20 08:46 PM, pepe wrote:
>>> have not found anything useful out there as gems/plugins go for this
>>> DB. Any ideas?
>>>
>>
>> you can run a sql command in your migration to generate a foreign key
>> constraint yourself, look at activerecord execute
>
> But  don't, because it will not be DB-agnostic and it will not appear in
> the schema file.  Foreigner is your best bet.

Thanks for the info, took a look, did not know about Foreigner. Agree
DB-agnostic is a good thing.

>
> Best,
> --
> Marnen Laibow-Koser
> http://www.marnen.org
> [email protected]

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to