       :ok -> :seed
       {:error, :already_up} -> :migrate
       {:error, term} when is_binary(term) ->
-        raise RuntimeError, "The database for #{inspect repo} couldn't be created: #{term}"
+        raise RuntimeError, "The database for #{inspect repo} couldn't be " <>
+                            "created: #{term}"
       {:error, term} ->
-        raise RuntimeError, "The database for #{inspect repo} couldn't be created: #{inspect term}"
+        raise RuntimeError, "The database for #{inspect repo} couldn't be " <>
+                            "created: #{inspect term}"
     end
   end
 

defmodule BorsNG.Database.Migrate do
  def repos, do: Application.get_env(:bors_database, :ecto_repos, [])

  def run_standalone do
    up()

    :init.stop()
  end

  def up do
    {:ok, _} = Application.ensure_all_started(:bors_database, :permanent)

    Enum.each repos(), fn(repo) ->
      case create_storage_for(repo) do


  def seeds_path(repo), do: priv_path_for(repo, "seeds.exs")

  def priv_dir(app), do: :code.priv_dir(app)

  def priv_path_for(repo, filename) do
    app = Keyword.get(repo.config, :otp_app)
