Search
Star
Feedback
Setup for Free
ยฉ 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Postgresql error after migrating to ash_archival - Ash Framework
AF
Ash Framework
โข
9mo ago
โข
12 replies
Quentin
Postgresql error after migrating to ash_archival
I get this error
:
*
(Postgrex
.Error
) ERROR 42703
(undefined
_column
) column
"archived
_at
" does not exist
After running the migration of AshArchival on my User resource
It didn
't create the archived
_at column for some reason
All I did is add the
AshArchival
AshArchival
to my extensions
.
here is the error
:
`
`
`
[info
] drop index if exists users
_unique
_email
_index
[info
] create index users
_unique
_email
_index
[error
]
(Postgrex
.Error
) ERROR 42703
(undefined
_column
) column
"archived
_at
" does not exist
(ecto
_sql 3
.12
.1
) lib
/ecto
/adapters
/sql
.
e
x
:1096
: Ecto
.Adapters
.SQL
.raise
_sql
_call
_error
/1
(elixir 1
.18
.3
) lib
/enum
.
e
x
:1714
: Enum
.
"
-map
/2
-lists
^map
/1
-1
-
"
/2
(ecto
_sql 3
.12
.1
) lib
/ecto
/adapters
/sql
.
e
x
:1203
: Ecto
.Adapters
.SQL
.execute
_ddl
/4
(ecto
_sql 3
.12
.1
) lib
/ecto
/migration
/runner
.
e
x
:348
: Ecto
.Migration
.Runner
.log
_and
_execute
_ddl
/3
(elixir 1
.18
.3
) lib
/enum
.
e
x
:1714
: Enum
.
"
-map
/2
-lists
^map
/1
-1
-
"
/2
(elixir 1
.18
.3
) lib
/enum
.
e
x
:1714
: Enum
.
"
-map
/2
-lists
^map
/1
-1
-
"
/2
(ecto
_sql 3
.12
.1
) lib
/ecto
/migration
/runner
.
e
x
:311
: Ecto
.Migration
.Runner
.perform
_operation
/3
(stdlib 6
.2
.2
) timer
.
e
r
l
:595
:
:timer
.tc
/2
(ecto
_sql 3
.12
.1
) lib
/ecto
/migration
/runner
.
e
x
:25
: Ecto
.Migration
.Runner
.run
/8
(ecto
_sql 3
.12
.1
) lib
/ecto
/migrator
.
e
x
:365
: Ecto
.Migrator
.attempt
/8
(ecto
_sql 3
.12
.1
) lib
/ecto
/migrator
.
e
x
:282
: anonymous fn
/5 in Ecto
.Migrator
.do
_up
/5
(ecto
_sql 3
.12
.1
) lib
/ecto
/migrator
.
e
x
:337
: anonymous fn
/6 in Ecto
.Migrator
.async
_migrate
_maybe
_in
_transaction
/7
(ecto
_sql 3
.12
.1
) lib
/ecto
/adapters
/sql
.
e
x
:1400
: anonymous fn
/3 in Ecto
.Adapters
.SQL
.checkout
_or
_transaction
/4
(db
_connection 2
.7
.0
) lib
/db
_connection
.
e
x
:1756
: DBConnection
.run
_transaction
/4
(ecto
_sql 3
.12
.1
) lib
/ecto
/migrator
.
e
x
:354
: Ecto
.Migrator
.run
_maybe
_in
_transaction
/5
(elixir 1
.18
.3
) lib
/task
/supervised
.
e
x
:101
: Task
.Supervised
.invoke
_mfa
/2
(elixir 1
.18
.3
) lib
/task
/supervised
.
e
x
:36
: Task
.Supervised
.reply
/4
`
`
`
Solution
Did you run
mix ash.codegen
mix ash.codegen
to generate migrations
?
Jump to solution
Ash Framework
Join
The Elixir backend framework for unparalleled productivity. Declarative tools that let you stop wasting time. Use with Phoenix LiveView or build APIs in minutes for your front-end of choice.
2,193
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Was this page helpful?
Yes
No
Similar Threads
Similar Threads
Guides or advice for migrating to Ash?
AF
Ash Framework / support
3y ago
`generate_many` error after upgrade to Ash 3.9
AF
Ash Framework / support
4mo ago
many_to_many exception after updating Ash
AF
Ash Framework / support
3y ago
Ash Oban trigger after action
AF
Ash Framework / support
9mo ago