If I were you, I would create the index with a raw SQL query. As in following PostGIS index creation
defmodule MyApp.AddPoiPostgisIndices do
use Ecto.Migration
def up do
execute("CREATE INDEX pois_coordinates_index ON pois USING GIST(coordinates);")
end
def down do
execute("DROP INDEX pois_coordinates_index")
end
end






















