fix: ensure source is always set on attributes in snapshots

This commit is contained in:
Zach Daniel 2022-06-21 22:33:24 -04:00
parent 5d435d92b6
commit abf5fdf346

View file

@ -1870,6 +1870,7 @@ defmodule AshPostgres.MigrationGenerator do
|> Map.put(:default, default)
|> Map.put(:size, size)
|> Map.put(:type, type)
|> Map.put(:source, attribute.source || attribute.name)
|> Map.delete(:name)
end)
|> Enum.map(fn attribute ->