I was following the book up to this point, added new migrations and applied them successfully. However, once I add
assert_eq!(saved.status, "pending_confirmation");
to the subscribe_persists_the_new_subscriber() test, I'm getting
error[E0609]: no field `status` on type `Record`
--> tests/api/subscriptions.rs:43:22
|
43 | assert_eq!(saved.status, "pending_confirmation");
| ^^^^^^ unknown field
|
= note: available fields are: `email`, `name`
For more information about this error, try `rustc --explain E0609`.
Relevant Cargo.toml lines:
[dependencies.sqlx]
version = "0.7"
default-features = false
features = [
"runtime-async-std",
"tls-rustls",
"macros",
"postgres",
"uuid",
"chrono",
"migrate",
]
I checked .sqlx directory but the cached query is updated with the new column:
I was following the book up to this point, added new migrations and applied them successfully. However, once I add
to the
subscribe_persists_the_new_subscriber()
test, I'm gettingRelevant Cargo.toml lines:
I checked
.sqlx
directory but the cached query is updated with the new column:Tried
cargo clean
,cargo sqlx migrate run
+cargo sqlx prepare
but to no avail. Any ideas what might be wrong are appreciated.