Merge pull request #148 from joshuapaling/feature/migrations-from-cli

Get migrations from cli working and tested.