Skip to content

Instantly share code, notes, and snippets.

@psi
Last active December 18, 2015 10:39
Show Gist options
  • Save psi/5769648 to your computer and use it in GitHub Desktop.
Save psi/5769648 to your computer and use it in GitHub Desktop.
# Lhm 1.3.0 includes an `Lhm.cleanup` method that handles table cleanup, so
# we can just wrap that functionality here.
#
# Check the README at: https://github.com/soundcloud/large-hadron-migrator
namespace :db do
namespace :lhm do
desc "Show tables created by LHM migrations"
task :show => :environment do
Lhm.cleanup
end
desc "Cleanup tables created by LHM migrations"
task :cleanup => :environment do
Lhm.cleanup(true)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment