1 # Pleroma: A lightweight social networking server
2 # Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
3 # SPDX-License-Identifier: AGPL-3.0-only
5 defmodule Pleroma.Repo do
8 adapter: Ecto.Adapters.Postgres,
9 migration_timestamps: [type: :naive_datetime_usec]
11 defmodule Instrumenter do
12 use Prometheus.EctoInstrumenter
16 Dynamically loads the repository url from the
17 DATABASE_URL environment variable.
20 {:ok, Keyword.put(opts, :url, System.get_env("DATABASE_URL"))}