 
     stamp("Migrating #{ project_name } to v#{ VERSION }")
 
-    for migration in migrations
+    for migration in MIGRATIONS
         if migration.to_version > project.settings.proto_version
             stamp("v#{ project.settings.proto_version } --> v#{ migration.to_version }")
             migration.migrationFn(project)


    serveContent()


migrateProject = (project_name) ->
    # Migrations, listed in order of execution.

    stamp("Working on #{ project_name }\n#{ project_path }\n")

    checkVersion = (settings) ->
        if settings.proto_version isnt VERSION and MIGRATIONS.length > 0
            message = "#{ project_name } version (#{ settings.proto_version }) does not match Proto version (#{ VERSION })"
            if settings.proto_version < VERSION
                message += "\nMigrate #{ project_name } using `proto -m #{ project_name }`."
