class ActiveRecord::ConnectionAdapters::SQLServer::Type::UnicodeVarchar
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb, line 7 def initialize(*args) super @limit = 4000 if @limit.to_i == 0 end
Public Instance Methods
sqlserver_type()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb, line 16 def sqlserver_type 'nvarchar'.tap do |type| type << "(#{limit})" if limit end end
type()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb, line 12 def type :string end