Closed lapluviosilla closed 15 years ago
mmm, that's odd, there is no such variable/method in all of the plugin code... can you run the rake task with --trace so i would be able to see where exactly is the error?
Just added rake trace. The line where it breaks "Indexer.index_list" is in the tasks/indexer.rake file.
Thanks for the quick response BTW!
It's a typo. Should be "indexes_list" instead of "index_list". I just forked/fixed/pushed and sent you a pull request
np. well, silly me. i deprecated this code on the last commit, but forgot to deprecate the task it self. re-pull the latest master and run one of the other tasks.
That works out just fine. Thx!
Do you see any use of keeping this option alive? it's just a simple report that i am afraid is useful for almost nothing. the other rake tasks generate a migration code that you can actually use (and change).
I think a simple report would be more readable and helpful, but the current simple report is actually a bit misleading. It just lists a bunch of columns on the different tables, but some of the indexes recommended by the other tasks actually create composite indexes, etc. So there's no way of telling from the "simple report" what you should do.
Ok, i will keep that in mind.. i generally want to merge the other 2 rake tasks into one that gathers association foreign keys and the finds.
also, i would love to hear if you found it useful in your applications.
When I try to run the "db:show_me_some_indexes" task I get the following error: rake aborted! undefined method `index_list' for Indexer:Module
I'm using rails 2.3.4
Rake trace: