Migrate Create Generate a new database migration with sequential numbering and up/down SQL file pair. When to use When you need to create a new database migration for schema changes such as creating tables, adding columns, creating indexes, or modifying constraints. Steps 1. Determine next number -- use to scan the migrations directory for existing migration files and find the highest number, then increment by 1 (zero-pad to 3 digits) 2. Select template -- based on the , choose the appropriate SQL template: - Names starting with - CREATE TABLE template - Names starting with - ALTER TABLE ADD…