Relationships and accepted_values
The relationships test checks that every value in a column exists in a referenced model — your foreign-key check. accepted_values checks that a column only contains a fixed list of allowed values — perfect for status enums.
In this lesson you will add both tests to schema.yml and then deliberately break the data to watch a failure surface.
Loading the interactive tutorial… If this message stays, please enable JavaScript.