class ActiveRecord::ConnectionAdapters::SQLServer::Type::Varbinary
Public Class Methods
Source
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 8 def initialize(**args) super @limit = 8000 if @limit.to_i == 0 end
Calls superclass method
Public Instance Methods
Source
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 17 def sqlserver_type "varbinary".yield_self do |type| type += "(#{limit})" if limit type end end
Source
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 13 def type :varbinary end