Sha256: 3b13a07ab083cf6a8e655b4207a675e6942a193d7ecca0e51b2f1828c774ecfe
Contents?: true
Size: 569 Bytes
Versions: 20
Compression:
Stored size: 569 Bytes
Contents
module ActiveRecord module ConnectionAdapters module MySQL class Column < ConnectionAdapters::Column # :nodoc: delegate :extra, to: :sql_type_metadata, allow_nil: true def unsigned? /\bunsigned(?: zerofill)?\z/.match?(sql_type) end def case_sensitive? collation && !/_ci\z/.match?(collation) end def auto_increment? extra == "auto_increment" end def virtual? /\b(?:VIRTUAL|STORED|PERSISTENT)\b/.match?(extra) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems