That was easy and I had tried that.

And, why I was having problems when I tried that...I had stale code in
my subclass that was interfering.  Sorry, about that.

Thanks for the help.  It made me look closer, since I knew that I had
the syntax correct.

Later,

GregD

On May 18, 3:06 pm, Jeremy Evans <[email protected]> wrote:
> On May 18, 9:23 am, GregD <[email protected]> wrote:
>
> > Hi all,
>
> > How do you use STI plugin?  Syntax is what I'm looking for in the
> > abstract class and then the subclass(es).  Does the sti_key have a
> > default declaration type?  I need to know that to declare it in table
> > creation.  I'm assuming it is String.
>
> Greg,
>
> In the parent class you use:
>
>   plugin :single_table_inheritance, :column
>
> Where :column is the string/varchar column holding the class name.
>
> Jeremy
>
> --
> 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 
> athttp://groups.google.com/group/sequel-talk?hl=en.

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