I wanted to disable the Unicode Types, so i added this to my initializers
# Disabled
ActiveRecord::ConnectionAdapters::SQLServerAdapter.enable_default_unicode_types = false
ActiveRecord::ConnectionAdapters::SQLServerAdapter.native_text_database_type = 'varchar(max)'
ActiveRecord::ConnectionAdapters::SQLServerAdapter.native_string_database_type = 'varchar'
The strings gets varchar(255) but the text fields gets nvarchar(max) and i'm having encoding issues with the nvarchar type.
I don't know why the native_text_database property isn't working
Thanks in advance
Greetings
Jose