This project is archived and is in readonly mode.
Add support for index length in MySQL adapter and schema dumper
-
Jonathan Weiss
Please also see the followup commit:
-
Pratik
- Assigned user set to Pratik
- State changed from new to wontfix
I think this is a better fit for a plugin. I asked around and no one really ever needed to use this feature. Having said that, if you want Rails to provide any hooks for pluginizing this, patches will be most welcome.
If you find people who need this feature, please have them post +1 here and we can re-evaluate the patch.
Thanks.
-
Ricky
+1 on this. This sort of thing seems to be required whenever you create an index on a blob-like field (text/binary/etc).
-
dkindlund
- Have you seen the plugin-version of this? http://dev.rubyonrails.org/ticke...
Also, even though the plugin works, it fails to write the correct length information to the db/schema.rb file. So, when you run something like "rake tests:unit", then the corresponding db/schema.rb file loads but fails on the malformed index (i.e., "no length specified").
So, if you use that plugin as a basis, is there any way to add the "db/schema.rb" creation logic to the plugin?
