Skip to content


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
# Generates a waffle switch migration for a given switch slug.
# usage: ./scripts/ <waffle-switch-name>
# % ./scripts/ foobar
# > switch generated to 301-waffle-foobar.sql
NEWFILE=`./scripts/ 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.