'Given an application, ensures that the migrations directory is ready.'

def create_migrations_directory(self, verbose=True):

    migrations_dir = self.migrations_dir()
    if (not os.path.isdir(migrations_dir)):
        if verbose:
            print(("Creating    migrations    directory    at    '%s'..." % migrations_dir))
        os.mkdir(migrations_dir)
    init_path = os.path.join(migrations_dir, '__init__.py')
    if (not os.path.isfile(init_path)):
        if verbose:
            print(("Creating    __init__.py    in    '%s'..." % migrations_dir))
        open(init_path, 'w').close()
