Works like a champ.  Thanks for your help!
--Brad

On Oct 19, 1:57 pm, Dirkjan Bussink <[EMAIL PROTECTED]> wrote:
> On 19 Oct, 2008, at 18:54 , Brad S wrote:
>
> > class Revision
> >  include DataMapper::Resource
>
> >  property :id,         Serial
> >  property :timestamp,  DateTime
> >  property :text,       Text
> >  belongs_to :page,     :index => true
> > end
>
> Ugly work-around that should work properly (adding the FK explicitly):
>
> class Revision
>    include DataMapper::Resource
>
>    property :id,         Serial
>    property :timestamp,  DateTime
>    property :text,       Text
>    property :page_id,    Integer, :index => true
>    belongs_to :page
> end
>
> --
> Regards,
>
> Dirkjan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DataMapper" 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/datamapper?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to