Skip to content

Commit

Permalink
Deprectated show_me_some_indexes
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad Meidar committed Sep 16, 2009
1 parent 8a14592 commit 4d61b7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/indexer.rb
Expand Up @@ -10,7 +10,7 @@ def self.sortalize(array)
def self.check_for_indexes(migration_format = false)
model_names = []
Dir.chdir(Rails.root) do
model_names = Dir["**/app/models/*.rb"].collect {|filename| filename.split('/').last }.uniq
model_names = Dir["**/app/models/*.rb"].collect {|filename| File.basename(filename) }.uniq
end

model_classes = []
Expand Down
2 changes: 1 addition & 1 deletion tasks/indexer.rake
Expand Up @@ -8,7 +8,7 @@ namespace :db do

desc "scan for possible required indexes"
task :show_me_some_indexes => :environment do
Indexer.index_list
puts "Sorry, simple report is deprecated.\nuse rake db:show_me_a_migration or db:show_me_ar_find_indexes instead"
end

task :show_me_a_migration => :environment do
Expand Down

0 comments on commit 4d61b7e

Please sign in to comment.