Sha256: 2d0d46bb06949d6d56fd6e2cd6b81f7e28f5584589d2ac8126a7b482b600a967
Contents?: true
Size: 808 Bytes
Versions: 7
Compression:
Stored size: 808 Bytes
Contents
module ActiveRecord module ConnectionAdapters module MSSQL class SchemaDumper < ConnectionAdapters::SchemaDumper MSSQL_NO_LIMIT_TYPES = [ 'text', 'ntext', 'varchar(max)', 'nvarchar(max)', 'varbinary(max)' ].freeze private def schema_limit(column) return if MSSQL_NO_LIMIT_TYPES.include?(column.sql_type) super end def explicit_primary_key_default?(column) !column.identity? end def default_primary_key?(column) super && column.identity? end # def schema_collation(column) # return unless column.collation # column.collation if column.collation != collation # end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems