Question 1 / 4 A notes migration has already run in production. How do you remove a column you no longer want?
Migrations are forward-only. There is no down function or rollback command. A migration that already ran will not run again if you edit it.
Review the lesson Question 2 / 4 Which filter matches the typed column API?
Note::query().filter(Note::title.starts_with("Field") & Note::user_id.eq(user.id))
Model filters use typed columns such as Note::user_id.eq(...). Combine them with &, |, and !. String where clauses are not the model API.
Review the lesson Question 3 / 4 The index prints note.user.name for every row, and you never called with. What happens?
The relationships guide says relationships are never lazy-loaded. Load them with with, or query them through note.user().
Review the lesson Question 4 / 4 Where does a new migration file have to live so the starter app embeds it?
The migrations! macro embeds every .rs file directly inside database/migrations. Subdirectories are not scanned.
Review the lesson Each answer is worth 25 points. Replays keep your highest score.