Fakultas Ilmu Komputer UI

Commit 49ce2dc9 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Add Paginator macro on repo

parent f67b0f46
......@@ -2,4 +2,10 @@ defmodule Diskuy.Repo do
use Ecto.Repo,
otp_app: :diskuy,
adapter: Ecto.Adapters.Postgres
use Paginator,
limit: 25, # sets the default limit to 10
maximum_limit: 100, # sets the maximum limit to 100
include_total_count: true
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment