Module: Metka::Generators::SqlIdentifier

Included in:
Metka::Generators::Strategies::IndexGenerator, Metka::Generators::Strategies::TableGenerator
Defined in:
lib/generators/metka/sql_identifier.rb

Overview

Generator options land verbatim in the migration's SQL, so they are constrained to plain identifiers: a hostile-looking name fails closed instead of producing broken or surprising DDL.

Constant Summary collapse

IDENTIFIER =
/\A[a-zA-Z_][a-zA-Z0-9_]*\z/