I've posted a companion piece to yesterday's many_to_one / one_to_many using
the many_to_many model. Once again, I'd appreciate any feedback anyone has
on it.

On Tue, Mar 10, 2009 at 10:27 AM, Jeremy Evans <[email protected]>wrote:

>
> On Mar 10, 8:43 am, Scott LaBounty <[email protected]> wrote:
> > All,
> >
> > I've just posted a new item on the one_to_many/many_to_one models that
> you
> > all were helping me with earlier. This is on my Steamcode blog athttp://
> steamcode.blogspot.com. Let me know if you would of any problems you
> > see so that I'm not leading people astray.
>
> Looks good.  I generally recommend using:
>
>  foreign_key :country_id, :countries
>
> Which sets up an actual foreign key reference.  As SQLite ignores the
> foreign key reference, it's probably not worth changing, though if you
> use another database, I'd definitely recommend it.
>
> Jeremy
> >
>


-- 
Scott
http://steamcode.blogspot.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-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/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to