       |> Enum.map(fn(line) -> line end)
       |> Enum.slice(3..100)
 
-    migration_content ++ new_content
-    |> File.write(migration_path)
+    migration_path
+    |> File.write!(migration_content ++ new_content)
   end
 
   defp create_ueberauth_migration do

      |> Enum.map(fn(line) -> line end)
      |> Enum.slice(3..100)

    migration_content ++ new_content
    |> File.write(migration_path)
  end
end

      |> Enum.map(fn(line) -> line end)
      |> Enum.slice(21..100)

    user_path
    |> File.write!(old_content ++ new_content)
  end

  defp create_guardian_token_migration do
