mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-09 00:42:47 +00:00
13 lines
304 B
Elixir
13 lines
304 B
Elixir
defmodule MyApp.Repo do
|
|
use Ecto.Repo, otp_app: :myapp
|
|
@dialyzer {:nowarn_function, rollback: 1}
|
|
|
|
@doc """
|
|
Dynamically loads the repository url from the
|
|
DATABASE_URL environment variable.
|
|
"""
|
|
def init(_, opts) do
|
|
{:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}
|
|
end
|
|
end
|