Alexandre Paz Mena wrote:
> On Fri, Oct 16, 2009 at 12:31 PM, Frederick Cheung <
> [email protected]> wrote:
> 
>>
>> Have you tried using has many through ? with has many through the join
>> table is also a rails model, so you have a place to say that the join
>> table should be in this other database.
> 
> 
> I tried it, but doing some tests I found that it allowed to have more 
> than
> one relation between two elements, a new problem that I don't know how 
> to
> solve.

validates_uniqueness_of and a unique index in the DB.  Done.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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