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 8 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 17 def sqlserver_type "nvarchar".yield_self do |type| type += "(#{limit})" if limit type end end
type()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/unicode_varchar.rb, line 13 def type :string end