Skip to content

Commit 14374ad

Browse files
committed
fix: split off varchar options from index
1 parent 411a94e commit 14374ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resource_generator/resource_generator.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ defmodule AshPostgres.ResourceGenerator do
452452
if String.contains?(thing, "(") do
453453
inspect(thing)
454454
else
455-
":#{thing}"
455+
Enum.at(String.split(":#{thing}", " "), 0)
456456
end
457457
end)
458458

0 commit comments

Comments
 (0)