     end
   end
 
-  @doc "Migrate all repos"
+  def drop(repo) do
+    repo.__adapter__.storage_down(repo.config)
+  end
+
+  @doc "Replacement for Mix.Tasks.Ecto.Migrate"
   def migrate do
     repos = Application.get_env(:farmbot, :ecto_repos)
     for repo <- repos do

    :ignore
  end

  def setup do
    repos = Application.get_env(:farmbot, :ecto_repos)
    for repo <- repos do

    pid && repo.stop(pid)
    Mix.Ecto.restart_apps_if_migrated(apps, migrated)
  end
end
