plentz / lol_dba

lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
1.59k stars 69 forks source link

Added models to reproduce the issue #57

Closed jamesbowles closed 9 years ago

jamesbowles commented 9 years ago

This reproduces issue #53

jamesbowles commented 9 years ago

While the build passes, the error appears in the logs:

Some errors here:
Please, create an issue with the following information here https://github.com/plentz/lol_dba/issues:
***************************
Class: Component
Association type: has_many
Association options: {:through=>:group_components, :extend=>[]}
Exception: undefined method `klass' for nil:NilClass
/home/travis/build/plentz/lol_dba/lib/lol_dba.rb:119:in `block (2 levels) in check_for_indexes'
/home/travis/build/plentz/lol_dba/lib/lol_dba.rb:92:in `each_pair'
/home/travis/build/plentz/lol_dba/lib/lol_dba.rb:92:in `block in check_for_indexes'
plentz commented 9 years ago

@jamesbowles thanks and sorry for taking so long. fixed :)