Skip to content

Instantly share code, notes, and snippets.

@robdmc
Created November 12, 2015 22:13
Show Gist options
  • Save robdmc/e0e537efbb0d260fbe07 to your computer and use it in GitHub Desktop.
Save robdmc/e0e537efbb0d260fbe07 to your computer and use it in GitHub Desktop.
Stash the current dev database in vagrant
#! /usr/bin/env bash
echo "DROP DATABASE IF EXISTS ambition_dev_stash; CREATE DATABASE ambition_dev_stash WITH TEMPLATE ambition_dev OWNER ambition_dev;" | psql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment