    # File lib/active_record/connection_adapters/mysql_adapter.rb, line 469
          def type_to_sql(type, limit = nil, precision = nil, scale = nil)
            return super unless type.to_s == 'integer'

            case limit
            when 0..3
              "smallint(#{limit})"
            when 4..8
              "int(#{limit})"
            when 9..20
              "bigint(#{limit})"
            else
              'int(11)'
            end
          end