index.community/backend/lib/backend/repo.ex

13 lines
264 B
Elixir
Raw Normal View History

2019-07-14 11:47:06 +00:00
defmodule Backend.Repo do
use Ecto.Repo,
otp_app: :backend,
2019-08-07 09:41:30 +00:00
adapter: Ecto.Adapters.Postgres,
timeout: 25_000
2019-07-14 13:40:54 +00:00
2019-08-27 13:50:16 +00:00
use Scrivener, page_size: 20
2019-07-14 13:40:54 +00:00
def init(_type, config) do
{:ok, Keyword.put(config, :url, System.get_env("DATABASE_URL"))}
end
2019-07-14 11:47:06 +00:00
end