Sha256: 112b67ae5d8008430ce34df34da89493c72ff806de9b818c0fd95d8210700097
Contents?: true
Size: 600 Bytes
Versions: 51
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true 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
51 entries across 51 versions & 7 rubygems