12 lines
228 B
Elixir
12 lines
228 B
Elixir
defmodule Backend.Repo do
|
|
use Ecto.Repo,
|
|
otp_app: :backend,
|
|
adapter: Ecto.Adapters.Postgres
|
|
|
|
use Paginator
|
|
|
|
def init(_type, config) do
|
|
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
|
|
end
|
|
end
|