eladmeidar / rails_indexes

A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.
http://blog.eizesus.com/2009/9/find-where-to-index-your-tables-on-a-rails-app/
MIT License
489 stars 35 forks source link

Does not play with javan-whenever-0.3.6 #10

Open zwolski opened 14 years ago

zwolski commented 14 years ago

rake db:show_me_a_migration

Expected /opt/local/lib/ruby/gems/1.8/gems/javan-whenever-0.3.6/lib/base.rb to define Base
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:426:in `load_missing_constant'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:80:in `const_missing'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:92:in `const_missing'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:19:in `const_get'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:19:in `check_for_indexes'
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/dependencies.rb:380:in `inject'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:19:in `each'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:19:in `inject'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:19:in `check_for_indexes'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:16:in `each'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:16:in `check_for_indexes'
{RAILS_ROOT}/vendor/plugins/rails_indexes/tasks/../lib/indexer.rb:196:in `simple_migration'
eladmeidar commented 14 years ago

i'll look into it, thanks