class ActiveRecord::ConnectionAdapters::SQLServer::Type::Varbinary

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 7
def initialize(*args)
  super
  @limit = 8000 if @limit.to_i == 0
end

Public Instance Methods

sqlserver_type() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 16
def sqlserver_type
  'varbinary'.tap do |type|
    type << "(#{limit})" if limit
  end
end
type() click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/varbinary.rb, line 12
def type
  :varbinary
end