lib/findex/tasks.rb in findex-0.0.1 vs lib/findex/tasks.rb in findex-0.1.0
- old
+ new
@@ -11,9 +11,12 @@
task :prepare do
@generate_migration = ENV['migration'] == 'true'
@perform_index = ENV['perform'] == 'true'
@tables = ENV['tables'] ? ENV['tables'].split(',').map(&:strip) : nil
+ Dir[File.join(Rails.root, 'app', 'models', '*.rb')].each do |file|
+ load(file)
+ end
end
namespace :indexes do
desc 'Finds unindexed boolean columns'
task :boolean => [:environment, :prepare] do
\ No newline at end of file