module Sequel::Plugins::SingularTableNames

  1. lib/sequel/plugins/singular_table_names.rb

The singular_table_names plugin changes the default table names for subclasses to not assume a plural version. By default, Sequel assumes table names for models use the plural versions.

Note that this plugin only affects subclasses of the class it is loaded into, it does not affect the current class. So it only makes sense to load this into Sequel::Model itself, or a subclass of Sequel::Model that is created via


# Don't assume pluralized table names
Sequel::Model.plugin :singular_table_names