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 at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to