Concept Flow - Why migrations version the database
Create Migration File
Run Migration
Migration Applies Changes
Record Version in Schema Migrations Table
Database Knows Which Migrations Ran
Future Runs Skip Applied Migrations
This flow shows how Rails migrations apply changes and record their version to track what has been done.