Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 3d806f9d4f
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (9 sloc) 0.376 kb
#!/bin/sh
# Generates a waffle switch migration for a given switch slug.
# usage: ./scripts/newwaffle.sh <waffle-switch-name>
# % ./scripts/newwaffle.sh foobar
# > switch generated to 301-waffle-foobar.sql
NEWFILE=`./scripts/newmig.sh waffle-$1`
echo "INSERT INTO waffle_switch (name, active) VALUES ('$1', 0);
" > ./migrations/$NEWFILE
echo "switch generated to $NEWFILE"
Jump to Line
Something went wrong with that request. Please try again.