mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 05:23:18 +12:00
fix: ensure source is always set on attributes in snapshots
This commit is contained in:
parent
5d435d92b6
commit
abf5fdf346
1 changed files with 1 additions and 0 deletions
|
@ -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 ->
|
||||
|
|
Loading…
Reference in a new issue