miguelgrinberg/Flask-Migrate — pull request #26 by RR2DO2 (2014-05-01 15:54:00+00:00)
Title: Make default directory relative to flask app root path

Before this change, the directory was always set to 'migrations' in the default case. This makes it dependent on the current working directory of any command being ran. The change uses current_app.root_path to make the default directory relative to the flask app it is for.

Additionally it uses _get_config for the init command, the utility function already used for the other functions (no behaviour change).