The sql_type method called here is from
ActiveRecord::ConnectionAdapters::Column

See
https://github.com/rails/rails/blob/28b8ca766e3e7c6c43d3ae900c99f8377153c62/activerecord/lib/active_record/connection_adapters/column.rb#L16