Skip to content

Instantly share code, notes, and snippets.

@jeffreywalter
Last active August 4, 2016 19:44
Show Gist options
  • Save jeffreywalter/acdc115d1f20645fe66c7daa7b21aa91 to your computer and use it in GitHub Desktop.
Save jeffreywalter/acdc115d1f20645fe66c7daa7b21aa91 to your computer and use it in GitHub Desktop.
Remove all the db tasks from a rails app
namespace :db do |namespace|
namespace.tasks.each {|task| task.clear}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment