On Wednesday, August 19, 2015 at 9:47:06 AM UTC-7, [email protected] 
wrote:
>
> class UserAccount < Sequel::Model
>>     
>> end
>>
>
> The associated table name will be user_accounts by default (underscored 
> plural of the class name).
>
> By using
> set_dataset(:user_account)
> I can specify what specific table name should be used instead.
>
> Is it possible to tell Sequel to don't pluralize the class names by 
> default?
>

Sequel 4.25.0 ships with a singular_table_names plugin that does this. So 
before creating your model classes:

Sequel::Model.plugin :singular_table_names

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/d/optout.

Reply via email to