Sha256: 34b38299a2c249225ad10062fb3c9d1e8aa621df68f6de20859614a929af5774
Contents?: true
Size: 727 Bytes
Versions: 5
Compression:
Stored size: 727 Bytes
Contents
# frozen_string_literal: true module ActiveRecord module ConnectionAdapters class SQLServerColumn < Column def initialize(name, default, sql_type_metadata = nil, null = true, default_function = nil, collation: nil, comment: nil, **sqlserver_options) @sqlserver_options = sqlserver_options super end def is_identity? @sqlserver_options[:is_identity] end def is_primary? @sqlserver_options[:is_primary] end def table_name @sqlserver_options[:table_name] end def is_utf8? sql_type =~ /nvarchar|ntext|nchar/i end def case_sensitive? collation && collation.match(/_CS/) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems