You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
With a migrated database, a seeds.ex file containing Ash.Seed.seed!(%Module{...}) fails with the error:
▶ mix run priv/repo/seeds.exs
** (KeyError) key :type not found in: nil. If you are using the dot syntax, such as map.field, make sure the left-hand side of the dot is a map
(ash_postgres 1.3.25) lib/data_layer.ex:1189: AshPostgres.DataLayer.ecto_changeset/3
(ash_postgres 1.3.25) lib/data_layer.ex:1105: AshPostgres.DataLayer.create/2
(ash 2.9.5) lib/ash/changeset/changeset.ex:2001: Ash.Changeset.run_around_actions/2
(ash 2.9.5) lib/ash/changeset/changeset.ex:1774: Ash.Changeset.transaction_hooks/2
(ash 2.9.5) lib/ash/changeset/changeset.ex:1699: Ash.Changeset.with_hooks/3
(ash 2.9.5) lib/ash/seed.ex:85: Ash.Seed.seed!/2
Describe the bug
With a migrated database, a seeds.ex file containing
Ash.Seed.seed!(%Module{...})
fails with the error:To Reproduce
An example repository can be found here : https://github.com/tfleurant/ash-postgres-seed-bug
To sum up:
Expected behavior
The data is inserted.
** Runtime
Additional context
It works when rollbacking in 1.3.24
The text was updated successfully, but these errors were encountered: