mobilizon/lib/mobilizon/storage/repo.ex

18 lines
342 B
Elixir
Raw Normal View History

2019-09-07 23:49:56 +00:00
defmodule Mobilizon.Storage.Repo do
@moduledoc """
2019-09-07 23:49:56 +00:00
Mobilizon Repo.
"""
2019-09-07 23:49:56 +00:00
use Ecto.Repo,
otp_app: :mobilizon,
adapter: Ecto.Adapters.Postgres
@doc """
2019-09-07 23:49:56 +00:00
Dynamically loads the repository url from the DATABASE_URL environment variable.
"""
@spec init(any(), any()) :: any()
def init(_, opts) do
{:ok, opts}
end
end