Skip to content

Instantly share code, notes, and snippets.

View tomoguisuru's full-sized avatar

Brandon Drake tomoguisuru

  • Orlando, Florida
View GitHub Profile
@skyriverbend
skyriverbend / rails_switch_branch.py
Created November 15, 2012 05:54
Rails: Switch branches and run migrations
#!/usr/local/bin/python
"""
To use this script, you must be in the root directory of a Rails project that
is using git. You should also make sure that your directory does not contain any
uncommitted changes. Then run:
$ python rails_switch_branch.py name_of_another_branch
Running the above will do the following: