Packages

A library that provides the necessary modules to support the PostgreSQL’s `ltree` data type with Ecto.

Current section

Files

Jump to
ecto_ltree priv test_repo migrations 20180125160508_create_items.exs
Raw

priv/test_repo/migrations/20180125160508_create_items.exs

defmodule EctoLtree.TestRepo.Migrations.CreateItems do
use Ecto.Migration
def change do
create table(:items) do
add :path, :ltree
end
create index(:items, [:path], using: :gist)
end
end