From 14374adbb48e33c3761b64d61cc90fb4197be31f Mon Sep 17 00:00:00 2001 From: Zach Daniel Date: Thu, 5 Dec 2024 12:45:55 -0500 Subject: [PATCH] fix: split off varchar options from index --- lib/resource_generator/resource_generator.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/resource_generator/resource_generator.ex b/lib/resource_generator/resource_generator.ex index 9b884778..34bb5b96 100644 --- a/lib/resource_generator/resource_generator.ex +++ b/lib/resource_generator/resource_generator.ex @@ -452,7 +452,7 @@ defmodule AshPostgres.ResourceGenerator do if String.contains?(thing, "(") do inspect(thing) else - ":#{thing}" + Enum.at(String.split(":#{thing}", " "), 0) end end)