rails_indexes
rails_indexes copied to clipboard
A rake task to track down missing database indexes. does not assume that all foreign keys end with the convention of _id.
eg when using aasm gem: ``` # vendor/gems/aasm-2.1.5/lib/aasm.rb module AASM end ~/g2(master) > rake db:index_migration -t (in /Users/zubin/ww/g2) ** Invoke db:index_migration (first_time) ** Invoke environment (first_time) ** Execute environment **...
Hi, This gem will create index for all the model(tables) columns which are ending with '_id' column. Can I know is there any way that I can create indexes for...
How difficult would it be to make this in to a gem rather than a plugin?
wgd1 $ rake db:index_migration --trace DEPRECATION WARNING: Having rake tasks in PLUGIN_PATH/tasks or PLUGIN_PATH/rails/tasks is deprecated. Use to PLUGIN_PATH/lib/tasks instead. (called from load_tasks at /usr/local/lib/ruby/gems/1.9.1/gems/railties-3.0.0.beta/lib/rails/plugin.rb:31) DEPRECATION WARNING: Having rake tasks...
Wanted to give this gem a try to tune up my queries, but I get the following error: White-Dome:server kevin$ rake db:index_migration /Users/kevin/.rvm/gems/ruby-1.9.2-p136/gems/rails-indexes-0.0.1/lib/rails-indexes/indexer.rb:332: warning: else without rescue is useless rake...
Does it work with rails3?
I get the following error when I try to run metrical with rails 3. ``` /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:349:in `on_error': (Racc::ParseError) parse error on value "." (tDOT) from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:99:in `_racc_do_parse_c' from /home/user/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/racc/parser.rb:99:in `do_parse'...
I am using the ActiveSalesforce gem to connect one of my models to Salesforce and I'd love to be able to exclude that model from the search. It'd be great...
It doesn't seem to work with a controller Forum::TopicsController, that comes with altered beast. uninitialized constant TopicsController
Hi, when I run "rake db:find_query_indexes" it get the following error: Expected //app/controllers/application.rb to define Application /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/dependencies.rb:428:in `load_missing_constant' Rails 2.2.2, ruby 1.8.7 (2009-06-12 patchlevel 174) ["rake db:index_migration" works fine on...