From 6eda5fae9c13ae553215e9442e1cfa69184e3b03 Mon Sep 17 00:00:00 2001 From: James Harton Date: Thu, 19 Sep 2024 11:56:28 +1200 Subject: [PATCH] fix: trim input before passing to `String.to_integer/1`. (#389) --- lib/migration_generator/migration_generator.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/migration_generator/migration_generator.ex b/lib/migration_generator/migration_generator.ex index 7b9de7a2..f75670cb 100644 --- a/lib/migration_generator/migration_generator.ex +++ b/lib/migration_generator/migration_generator.ex @@ -727,6 +727,7 @@ defmodule AshPostgres.MigrationGenerator do opts |> prompt(message) + |> String.trim() |> String.to_integer() end