Created
May 30, 2026 15:14
-
-
Save bensheldon/9f3ce9834954ba06e30c67ff51468613 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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