On Wednesday, February 5, 2014 12:26:53 PM UTC-8, Cristian Palau wrote:
>
> Hello,
>
> First of all Sequel is a great library. Thank you developers.
>
> I tried to work the sample in the sequel docs with no luck. I am working 
> with PostgreSQL.
>
> I created 2 tables:
>

First, post text instead of pictures. Second, your pictures only show a 
single column in staff. You should probably only use class table 
inheritance if you have other subclasses with additional columns.
 

> I created the classes (Employee, Staff) as:
>
> *class Employee < Sequel::Model*
> *     plugin :class_table_inheritance, :key=>:kind, 
> :table_map=>{:Staff=>:staff}*
> *  end*
>
> *class Staff < Sequel::Model   *
> *end*
>

Staff needs to inherit from Employee, that's probably the source of your 
problem.
 
Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to