 
 mms.status = (callback = ->) ->
 
-  schema = _loadSchema()
-
   _loadTasks()
 
   .then (tasks) ->
 
     tasks.forEach (task) ->
       {name} = task
-      if schema[name] then _info 'up', name else _error 'down', name
+      if schemas[name] then _info 'up', name else _error 'down', name
 
   .then -> callback
 

    _exec migration.up

    .then ->
      schema[task.name] = status: 'up'
      fs.writeFileAsync config.schema, JSON.stringify schema

    .then ->


mms.migrate = (name, callback = ->) ->

  stop = false

  _loadTasks('up')
