Skip to content

Instantly share code, notes, and snippets.

@knzconnor
Forked from jbarnette/gist:23689
Created November 11, 2008 00:04
Show Gist options
  • Save knzconnor/23695 to your computer and use it in GitHub Desktop.
Save knzconnor/23695 to your computer and use it in GitHub Desktop.
namespace :db do
task :migrate => :clear_load_paths do
Dependencies.load_paths = @old_load_paths
end
task :clear_load_paths do
@old_load_paths = Dependencies.load_paths
Dependencies.load_paths = []
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment