Module: Sequel::Plugins::IdentifierColumns

Defined in:
lib/sequel/plugins/identifier_columns.rb

Overview

The identifier_columns plugin makes Sequel automatically handle column names containing 2 or more consecutive underscores when creating or updating model objects. By default, this doesn’t work correctly in Sequel, as it handles such symbols specially.

This behavior isn’t the default as it hurts performance, and is rarely necessary.

Usage:

# Make all model subclasses handle column names
# with two or more underscores when saving
Sequel::Model.plugin :identifier_columns

# Make the Album class handle column names
# with two or more underscores when saving
Album.plugin :identifier_columns

Defined Under Namespace

Modules: InstanceMethods