In Rails, format validation ensures an attribute matches a specific pattern before saving a record. The model uses validates with a regex to check the attribute. When saving, Rails checks the attribute's value against the pattern. If it matches, the save succeeds; if not, the save fails and an error message is added. For example, an email attribute validated with a regex will only save if the email looks correct. This prevents bad data from being stored. The execution table shows creating and updating users with valid and invalid emails, tracking save success and errors. Understanding this flow helps beginners see how Rails enforces data format rules.