Or just...
change_column :my_table, :related_data, :text, :limit => 123456789 # or whatever you think is large enough
-philip
I think that the limit can be 2048 as I recall that is the max for a
URL. I can't find a reference to back that up at the moment, but I
think that this is what the sitemap specification (see Google) allows,
too.
-Rob
Rob Biedenharn
R...@AgileConsultingLLC.com http://AgileConsultingLLC.com/
r...@GaslightSoftware.com http://GaslightSoftware.com/
http://support.microsoft.com/kb/q208427/
Relevant portion.....
Microsoft Internet Explorer has a maximum uniform resource locator (URL) length of 2,083 characters. Internet Explorer also has a maximum path length of 2,048 characters. This limit applies to both POST request and GET request URLs.
If you are using the GET method, you are limited to a maximum of 2,048 characters, minus the number of characters in the actual path.
However, the POST method is not limited by the size of the URL for submitting name/value pairs. These pairs are transferred in the header and not in the URL.
That's the current limit for IE - but IE is not the internet.
If you check section 3.2.1 of the HTTP RFC, it states:
"The HTTP protocol does not place any a priori limit on the length of
a URI." and also notes that "Servers should be cautious about
depending on URI lengths above 255 bytes, because some older client or
proxy implementations may not properly support these lengths"
So essentially the limit is whatever combination of current clients
can send, and your server can handle. Over time, I'd assume it will
get longer, as more http clients support longer URIs, and more people
rely on them in their apps.
It would've been polite to include the link! :-)