The other day, I ran into an odd problem with Rails migrations. I needed to add an index to a MySQL TEXT column, and such indexes are required to include a prefix length (who knows why). Anyway, I discovered that I couldn't just tack the prefix length onto the column name because ActiveRecord was blindly quoting the entire string. I carped about it lightly on the #rails IRC channel, and forgot about it for a few weeks. Today I decided to take a few minutes and see how hard it would be to fix that little wart. Turns out it wasn't tough at all. Behold my first [PATCH] ticket! It's not exactly RJS, but hopefully someone will find it useful (and hopefully it won't break anything else).
Tags: rails
|
|
||||||||
|
This Month
Month Archive
Login
|
My Very First Rails Patch
by
BigJimmy
on Thu 06 Jul 2006 05:27 PM CDT | Permanent Link
Keywords:
rails
No comments found.
|
|||||||
|
|
||||||||