Sha256: b7f8436aeb006a636718396edfc7d2fe99ef105fa7099ce28a4d57d8f70e9cbb
Contents?: true
Size: 601 Bytes
Versions: 102
Compression:
Stored size: 601 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 && !collation.end_with?("_ci") 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
102 entries across 98 versions & 8 rubygems