Skip to content

Instantly share code, notes, and snippets.

@bensheldon
Created May 30, 2026 15:14
Show Gist options
  • Select an option

  • Save bensheldon/9f3ce9834954ba06e30c67ff51468613 to your computer and use it in GitHub Desktop.

Select an option

Save bensheldon/9f3ce9834954ba06e30c67ff51468613 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
require "fileutils"
# path to your application root.
APP_ROOT = File.expand_path("..", __dir__)
def system!(*args)
system(*args, exception: true)
end
FileUtils.chdir APP_ROOT do
puts "== Dropping database =="
system! "bin/rails db:drop parallel:drop"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment