debianize-mobilizon/lib/mobilizon/storage/repo.ex

18 lines
355 B
Elixir
Raw Normal View History

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